diff options
author | slene <vslene@gmail.com> | 2014-03-15 19:01:50 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-15 19:01:50 +0800 |
commit | fa5ad1e46560bd006bccf57e5cac39589d18e344 (patch) | |
tree | 6157a0fb7f2333207d8ba907713be873b3eb0e52 /modules/base/base.go | |
parent | 06deed820d9f48ecf972c8716b17ad58b91ab9b9 (diff) | |
download | gitea-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.go | 10 |
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{}) - } -} |