diff options
Diffstat (limited to 'lib/templates/template.go')
-rw-r--r-- | lib/templates/template.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/templates/template.go b/lib/templates/template.go index 1c7b546..f979ba2 100644 --- a/lib/templates/template.go +++ b/lib/templates/template.go @@ -211,17 +211,3 @@ func ParseTemplateFromFile(templateName string, templateDirs []string, data inte } return &body, nil } - -func ParseTemplate(templateText string, data interface{}) ([]byte, error) { - emailTemplate, err := - template.New("email_template").Funcs(templateFuncs).Parse(templateText) - if err != nil { - return nil, err - } - - var outString bytes.Buffer - if err := emailTemplate.Execute(&outString, data); err != nil { - return nil, err - } - return outString.Bytes(), nil -} |