summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorHorus32015-06-02 05:38:12 +0200
committerHorus32015-06-02 05:38:12 +0200
commitf8a4da578bc8f58924ef060b60c472ade8390d55 (patch)
treed9b1b35966149ad69f0d638a7c158ea3aff1883e /main.go
parent0a00051d30184c94a666638f66f1d145df855995 (diff)
downloadfreemail-f8a4da578bc8f58924ef060b60c472ade8390d55.tar.gz
Bug fix and better wording.
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.go b/main.go
index 208c9bc..7659cd5 100644
--- a/main.go
+++ b/main.go
@@ -14,8 +14,7 @@ var decoder = schema.NewDecoder()
var store = sessions.NewCookieStore([]byte(os.Getenv("FREEMAIL_SECRET")))
-var mainTempl = template.Must(template.New("global").Funcs(template.FuncMap{"add": add}).ParseGlob("./views/*.html"))
-var emailTempl = template.Must(template.New("email").Funcs(template.FuncMap{"add": add}).ParseGlob("./views/email/*.html"))
+var mainTempl = template.Must(template.New("global").Funcs(template.FuncMap{"add": add}).ParseGlob("./html/*.html"))
func add(x, y int) int {
return x + y