Files
yarr/src/assets/assets.go
2026-06-30 19:05:58 +01:00

20 lines
286 B
Go

//go:build debug
package assets
import (
"html/template"
"io/fs"
"os"
)
const rootDir = "src/assets"
func Templates() *template.Template {
return template.Must(template.ParseGlob(rootDir + "/templates/*.html"))
}
func StaticFS() fs.FS {
return os.DirFS(rootDir + "/static")
}