updated templater
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user