From f85b17a00e0a484a870511726118a36375c3d97a Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Tue, 18 Feb 2020 17:48:36 +0800 Subject: mailer: fix template not found error --- internal/mailer/mail.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/mailer/mail.go') diff --git a/internal/mailer/mail.go b/internal/mailer/mail.go index 83f7b44f..1cb01a57 100644 --- a/internal/mailer/mail.go +++ b/internal/mailer/mail.go @@ -43,6 +43,7 @@ func render(tpl string, data map[string]interface{}) (string, error) { opt := &macaron.RenderOptions{ Directory: path.Join(setting.StaticRootPath, "templates/mail"), AppendDirectories: []string{path.Join(setting.CustomPath, "templates/mail")}, + Extensions: []string{".tmpl", ".html"}, Funcs: []template.FuncMap{map[string]interface{}{ "AppName": func() string { return setting.AppName -- cgit v1.2.3