aboutsummaryrefslogtreecommitdiff
path: root/modules/base/base.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-06 02:21:44 -0500
committerUnknown <joe2010xtmf@163.com>2014-03-06 02:21:44 -0500
commitc6f2c23b05474d80ea282a7683135b3ea8f8e2d9 (patch)
tree83054b7cb334ffbfbeadc688bf853fa0916696d3 /modules/base/base.go
parente59f90b8fee3e615d1b60067bfc0d636606899d8 (diff)
Add binding form for register user
Diffstat (limited to 'modules/base/base.go')
-rw-r--r--modules/base/base.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/base/base.go b/modules/base/base.go
new file mode 100644
index 00000000..0d305ab4
--- /dev/null
+++ b/modules/base/base.go
@@ -0,0 +1,20 @@
+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package base
+
+import (
+ "github.com/codegangsta/martini"
+)
+
+type (
+ // Type TmplData represents data in the templates.
+ TmplData map[string]interface{}
+)
+
+func InitContext() martini.Handler {
+ return func(context martini.Context) {
+ context.Map(TmplData{})
+ }
+}