Replies: 1 comment 5 replies
-
Why not use the native dependencies handling from Quarto extension? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
A minimal working example is available at https://github.com/rgaiacs/quarto-minimal-site
I'm working on a extension that provides some JavaScript that loads some modules, i.e.
main.js
hasFor over simplification, the HTML template has
The rendered HTML has
Quarto parses a intermediate HTML, identifies the asset (
main.js
), copies it tosite_libs
, and write the final HTML usingsite_libs
. Unfortunately, Quarto does not parses the JavaScript asset to identify that a secondary file,lib.js
, must also be copied tosite_libs
.Any solution? I tried https://quarto.org/docs/websites/website-tools.html#site-resources but the files are copied to another location.
Beta Was this translation helpful? Give feedback.
All reactions