feat(lib,htmx): install htmx

This commit is contained in:
Guz
2024-10-23 18:36:02 -03:00
parent e769a59b57
commit 0ed5f27f92

View File

@@ -71,6 +71,15 @@ templ Page(i ...PageInfo) {
@LinkCSSFile("/assets/css/uno.css", assets.ASSETS, "css/uno.css")
// Global scripts
<script type="module" src="/assets/lib/entry.js" defer></script>
if configs.DEVELOPMENT {
<script type="module">
import htmx from '/assets/lib/htmx.js'; htmx.logAll(); window.htmx = htmx;
</script>
} else {
<script type="module">
import htmx from '/assets/lib/htmx.js'; htmx.logNone(); window.htmx = htmx;
</script>
}
// Additional heading
if pageInfo(i).Heading != nil {
@pageInfo(i).Heading