diff --git a/tpl/template.go b/tpl/template.go index 60fc91746..357a9fbd2 100644 --- a/tpl/template.go +++ b/tpl/template.go @@ -82,6 +82,9 @@ func New() Template { localTemplates = &templates.Template + for k, v := range funcMap { + amber.FuncMap[k] = v + } templates.Funcs(funcMap) templates.LoadEmbedded() return templates