name the template

This commit is contained in:
Mikaël Cluseau 2018-06-20 07:07:12 +11:00
parent ec3736cedc
commit dc622fb466

View File

@ -149,7 +149,7 @@ func (t *Template) Execute(wr io.Writer, data interface{}, extraFuncs map[string
templateFuncs[name] = f
}
tmpl, err := template.New("tmpl").
tmpl, err := template.New(t.Name).
Funcs(templateFuncs).
Parse(t.Template)
if err != nil {