Open Konkrad opened 1 month ago
Workaround: Create a separate folder for each file. Problem should be somewhere here: https://github.com/posit-dev/py-shiny/blob/33c8c79b7edf28f2e0d1d1e2b6051eed084d15ad/shiny/ui/_include_helpers.py#L215
Furthermore, I discovered that when you use (in the core syntax)
app_ui = ui.page_output("page_generator")
and return both in the headers, it will not be copied too
@output
@render.ui
def page_generator():
return ui.page_fillable(
ui.head_content(ui.include_css(Path(__file__).parent / "css/style.css")),
ui.head_content(
ui.include_js(Path(__file__).parent / "js/script.js"),
),
Hello, my app fails when I include both CSS and Javascript, only one of them is loaded
Shiny version: 0.10.1 Example:
What do I expect? That both
custom.css
andscript.js
will be added to the HTML.What happens? One of them generates a 404 error