Files
webhooker/templates/templates.go
clawbot 68c2a4df36 refactor: use go:embed for templates
Templates are now embedded using //go:embed and parsed once at startup
with template.Must(template.ParseFS(...)). This avoids re-parsing
template files from disk on every request and removes the dependency
on template files being present at runtime.

closes #7
2026-03-01 15:47:22 -08:00

9 lines
81 B
Go

package templates
import (
"embed"
)
//go:embed *.html
var Templates embed.FS