mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user