diff --git a/src/template/text.go b/src/template/text.go index 4495d750..61a6e615 100644 --- a/src/template/text.go +++ b/src/template/text.go @@ -44,7 +44,7 @@ func (c *Context) init(t *Text) { func (t *Text) Render() (string, error) { t.cleanTemplate() - tmpl, err := template.New("title").Funcs(funcMap()).Parse(t.Template) + tmpl, err := template.New(t.Template).Funcs(funcMap()).Parse(t.Template) if err != nil { t.Env.Log(environment.Error, "Render", err.Error()) return "", errors.New(InvalidTemplate)