libs optional default (empty)One dependency or a JSON array of several. A built-in library name (aa-jslib, tippy, select2@4), a stylesheet (ends in .css, or has .css? or /css? for Google Fonts; append a media type like print), or a script (a path or a .js file; append defer, async, or an SRI integrity hash like sha256-...). A JSON array loads each entry, for example ["/css/a.css", "/js/b.js"].
script optional default (empty)JavaScript to run once the required libraries are loaded. Use it to initialise the library you just required, for example calling tippy(...) or lightGallery(...). Runs in the page, after the libs are ready.
position optional default (empty)Where the libraries load. Empty (the default) loads them in the head; FOOT loads them at the end of the body, before generate:FOOT. Only affects the libs, not the script.
[{require:aa-jslib}]
[{require:/js/site.js}]
[{require:/js/site.js defer}]
[{require:/css/print.css print}]
[{require:["/css/site.css", "/js/site.js"]}]
[{require:tippy:tippy('.tip')}]
[{require:datatable@1::FOOT}]
[{require:https#://cdn.example.org/lib.min.js sha256-ri1AEoNtgONXOIJ0k7p9HoQHGq6MEDsjPPYZh7NWpu0=}]
{require:/css/site.css}