Some minor changes

This commit is contained in:
Unknwon 2016-03-06 16:40:04 -05:00
parent 12b5a76b0d
commit 58f0c68151
6 changed files with 90 additions and 107 deletions

View file

@ -7,7 +7,6 @@ package cmd
import (
"crypto/tls"
"fmt"
gotmpl "html/template"
"io/ioutil"
"net/http"
"net/http/fcgi"
@ -126,7 +125,7 @@ func newMacaron() *macaron.Macaron {
))
m.Use(macaron.Renderer(macaron.RenderOptions{
Directory: path.Join(setting.StaticRootPath, "templates"),
Funcs: []gotmpl.FuncMap{template.Funcs},
Funcs: template.NewFuncMap(),
IndentJSON: macaron.Env != macaron.PROD,
}))