feat: initialize template

This commit is contained in:
2026-03-02 22:36:47 +01:00
parent b4e8baabdc
commit dd5e32cc4d
62 changed files with 433 additions and 1016 deletions
+19
View File
@@ -0,0 +1,19 @@
//go:generate go tool templ generate
package web
import (
"embed"
"io/fs"
)
//go:embed static/*
var Static embed.FS
func GetStaticFS() fs.FS {
// fs.Sub returns an fs.FS corresponding to the subtree rooted at "static"
f, err := fs.Sub(Static, "static")
if err != nil {
panic(err)
}
return f
}