diff options
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -53,6 +53,10 @@ func CreateNewEntry(email, password string) error { func ExecTemplate(template string, w http.ResponseWriter, r *http.Request, flash Flash) error { l := GetLanguage(r) + flash.Language = l + if l != "" { + l = "_" + l + } template = template + l + ".html" index := mainTempl.Lookup(template) |
