From fa5ad1e46560bd006bccf57e5cac39589d18e344 Mon Sep 17 00:00:00 2001 From: slene Date: Sat, 15 Mar 2014 19:01:50 +0800 Subject: move templateFuncs to one file, add middleware context. --- modules/base/base.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'modules/base/base.go') diff --git a/modules/base/base.go b/modules/base/base.go index 0d305ab4..967a78bf 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{}) - } -} -- cgit v1.2.3