Added templating, versioning, middleware, etc
This commit is contained in:
11
web/middleware/vars.go
Normal file
11
web/middleware/vars.go
Normal file
@ -0,0 +1,11 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"github.com/flamego/template"
|
||||
|
||||
"git.metaunix.net/bitgoblin/blt/app"
|
||||
)
|
||||
|
||||
func CustomVars(data template.Data) {
|
||||
data["app_version"] = app.Version
|
||||
}
|
Reference in New Issue
Block a user