diff options
author | Gogs <gogitservice@gmail.com> | 2014-03-19 21:57:55 +0800 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2014-03-19 21:58:51 +0800 |
commit | 56af7e99a819758c6bedc6d745a9f810f3fc050d (patch) | |
tree | 29de4db653e1d59e271917812e9dc669acb7f209 /web.go | |
parent | 0da4975f4ffca8dd85213c19600730ee52349e2a (diff) | |
download | gitea-56af7e99a819758c6bedc6d745a9f810f3fc050d.tar.gz gitea-56af7e99a819758c6bedc6d745a9f810f3fc050d.zip |
fork render
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -12,7 +12,6 @@ import ( "github.com/codegangsta/cli" "github.com/codegangsta/martini" - "github.com/martini-contrib/render" "github.com/martini-contrib/sessions" "github.com/gogits/binding" @@ -64,7 +63,7 @@ func runWeb(*cli.Context) { m := newMartini() // Middlewares. - m.Use(render.Renderer(render.Options{Funcs: []template.FuncMap{base.TemplateFuncs}})) + m.Use(middleware.Renderer(middleware.RenderOptions{Funcs: []template.FuncMap{base.TemplateFuncs}})) // TODO: should use other store because cookie store is not secure. store := sessions.NewCookieStore([]byte("secret123")) |