aboutsummaryrefslogtreecommitdiff
path: root/htmx/htmx.templ
blob: 321bda5b2fa358038f8424dcbeccf9384ca8b9d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package htmx

// Use pulls in the HTMX core library and any extensions.
//
// Right now the extensions you can choose from are:
//
//     * event-header
//     * path-params
//     * remove-me
//     * websocket
//
// This is mostly based on the extensions that I personally use.
templ Use(exts ...string) {
	<script src={ URL + "htmx.js" }></script>
	for _, ext := range exts {
		<script src={ URL + ext + ".js" }></script>
	}
}