blt/web/middleware/vars.go

13 lines
230 B
Go
Raw Normal View History

package middleware
import (
"github.com/flamego/template"
"git.metaunix.net/bitgoblin/blt/app"
)
func CustomVars(data template.Data) {
data["app_version"] = app.AppVersion
data["runtime_version"] = app.RuntimeVersion
}