diff options
Diffstat (limited to 'tpl/tplimpl/template.go')
-rw-r--r-- | tpl/tplimpl/template.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index c86f4cf1e..77826e0b0 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -39,6 +39,7 @@ const ( var ( _ tpl.TemplateHandler = (*templateHandler)(nil) + _ tpl.TemplateFuncsGetter = (*templateHandler)(nil) _ tpl.TemplateTestMocker = (*templateHandler)(nil) _ tpl.TemplateFinder = (*htmlTemplates)(nil) _ tpl.TemplateFinder = (*textTemplates)(nil) @@ -262,6 +263,10 @@ func (t *templateHandler) SetFuncs(funcMap map[string]interface{}) { t.setFuncs(funcMap) } +func (t *templateHandler) GetFuncs() map[string]interface{} { + return t.html.funcster.funcMap +} + func (t *htmlTemplates) setFuncs(funcMap map[string]interface{}) { t.t.Funcs(funcMap) } |