name the template
This commit is contained in:
parent
ec3736cedc
commit
dc622fb466
@ -149,7 +149,7 @@ func (t *Template) Execute(wr io.Writer, data interface{}, extraFuncs map[string
|
|||||||
templateFuncs[name] = f
|
templateFuncs[name] = f
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpl, err := template.New("tmpl").
|
tmpl, err := template.New(t.Name).
|
||||||
Funcs(templateFuncs).
|
Funcs(templateFuncs).
|
||||||
Parse(t.Template)
|
Parse(t.Template)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user