mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -60,8 +60,10 @@ import (
|
||||
_ "github.com/gohugoio/hugo/tpl/urls"
|
||||
)
|
||||
|
||||
var _ texttemplate.ExecHelper = (*templateExecHelper)(nil)
|
||||
var zero reflect.Value
|
||||
var (
|
||||
_ texttemplate.ExecHelper = (*templateExecHelper)(nil)
|
||||
zero reflect.Value
|
||||
)
|
||||
|
||||
type templateExecHelper struct {
|
||||
running bool // whether we're in server mode.
|
||||
@@ -145,7 +147,6 @@ func newTemplateExecuter(d *deps.Deps) (texttemplate.Executer, map[string]reflec
|
||||
}
|
||||
|
||||
func createFuncMap(d *deps.Deps) map[string]interface{} {
|
||||
|
||||
funcMap := template.FuncMap{}
|
||||
|
||||
// Merge the namespace funcs
|
||||
@@ -172,5 +173,4 @@ func createFuncMap(d *deps.Deps) map[string]interface{} {
|
||||
}
|
||||
|
||||
return funcMap
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user