package ui
import "fmt"
var (
apexChartsHandle = templ.NewOnceHandle()
d3Handle = templ.NewOnceHandle()
dexieHandle = templ.NewOnceHandle()
heliaHandle = templ.NewOnceHandle()
htmxHandle = templ.NewOnceHandle()
tailwindHandle = templ.NewOnceHandle()
)
// ApexCharts is a component that renders the ApexCharts.js library
templ ApexCharts() {
@apexChartsHandle.Once() {
}
}
// d3 is a component that renders the D3.js library
templ D3() {
@d3Handle.Once() {
}
}
// dexie is a component that renders the Dexie.js library
templ Dexie() {
@dexieHandle.Once() {
}
}
// In package deps
templ Helia() {
@heliaHandle.Once() {
}
}
// Htmx is a component that renders the Htmx.js library
templ Htmx() {
@htmxHandle.Once() {
}
}
// jsDelivrURL returns the URL of a package on jsDelivr
func jsDelivrURL(pkg string, version string, path string) string {
return fmt.Sprintf("https://cdn.jsdelivr.net/npm/%s/%s/%s", pkg, version, path)
}