summaryrefslogtreecommitdiffstats
path: root/modules/base/base.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-15 19:01:50 +0800
committerslene <vslene@gmail.com>2014-03-15 19:01:50 +0800
commitfa5ad1e46560bd006bccf57e5cac39589d18e344 (patch)
tree6157a0fb7f2333207d8ba907713be873b3eb0e52 /modules/base/base.go
parent06deed820d9f48ecf972c8716b17ad58b91ab9b9 (diff)
downloadgitea-fa5ad1e46560bd006bccf57e5cac39589d18e344.tar.gz
gitea-fa5ad1e46560bd006bccf57e5cac39589d18e344.zip
move templateFuncs to one file, add middleware context.
Diffstat (limited to 'modules/base/base.go')
-rw-r--r--modules/base/base.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/base/base.go b/modules/base/base.go
index 0d305ab453..967a78bfbe 100644
--- a/modules/base/base.go
+++ b/modules/base/base.go
@@ -4,17 +4,9 @@
package base
-import (
- "github.com/codegangsta/martini"
-)
+import ()
type (
// Type TmplData represents data in the templates.
TmplData map[string]interface{}
)
-
-func InitContext() martini.Handler {
- return func(context martini.Context) {
- context.Map(TmplData{})
- }
-}