updated templater

This commit is contained in:
2026-01-18 17:39:07 -07:00
parent 717956790f
commit 4c25e5e8e9
12 changed files with 43 additions and 30 deletions
+4 -4
View File
@@ -73,9 +73,9 @@ func Router(
logger.WithGroup("templates"),
r.Group("/ui"),
contentDir,
templater.NewTemplater(
contentDir+"/templates",
func() template.FuncMap {
// TODO: move this constructor call up to main.go
new(templater.Templater).With(templater.Config{
Funcs: func(name string, props map[string]any) template.FuncMap {
return template.FuncMap{
// params
"addPathParam": func(k string, v any, args map[string]any) (map[string]any, error) {
@@ -121,7 +121,7 @@ func Router(
},
}
},
),
}),
rawEvents,
accts,
etsy,