mirror of
https://github.com/go-gitea/gitea
synced 2025-07-09 03:57:19 +00:00
move templateFuncs to one file, add middleware context.
This commit is contained in:
@ -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{})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user