Skip to content

Commit ff8581e

Browse files
committed
Debugging
1 parent c1a11a1 commit ff8581e

File tree

1 file changed

+6
-2
lines changed
  • tests/playwright/shiny/bugs/2061-css-js-inclusion

1 file changed

+6
-2
lines changed

tests/playwright/shiny/bugs/2061-css-js-inclusion/app.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
from shiny import App, Inputs, Outputs, Session, ui
2+
from pathlib import Path
3+
4+
js_file = Path(__file__).parent / "js" / "customjs.js"
5+
css_file = Path(__file__).parent / "css" / "style.css"
26

37
# Define the UI
48
app_ui = ui.page_fluid(
5-
ui.include_css("./css/style.css", method="link_files"),
6-
ui.include_js("./js/customjs.js", method="link_files"),
9+
ui.include_css(css_file, method="link_files"),
10+
ui.include_js(js_file, method="link_files"),
711
ui.h1("Simple Shiny App with External CSS"),
812
ui.div(
913
ui.p("This is a simple Shiny app that demonstrates ui.include_css()"),

0 commit comments

Comments
 (0)