aboutsummaryrefslogtreecommitdiff
path: root/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 10:01:50 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 10:01:50 -0400
commit8e1f339fd69806af1edafc152fab0009105d4220 (patch)
tree9541c9638cca9b67ea3170471d1754cce5031e0d /web.go
parentdd8e7868ce78216faf563d4f232a87cb416eeff4 (diff)
parent56af7e99a819758c6bedc6d745a9f810f3fc050d (diff)
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'web.go')
-rw-r--r--web.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/web.go b/web.go
index e519fe10..fe3596e2 100644
--- a/web.go
+++ b/web.go
@@ -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"))