1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| package clib
import ( "github.com/valyala/fasthttp"
"{{{ .Package }}}/app" "{{{ .Package }}}/app/controller" "{{{ .Package }}}/app/controller/cutil" "{{{ .Package }}}/app/util" "{{{ .Package }}}/views" )
func About(rc *fasthttp.RequestCtx) { controller.Act("about", rc, func(as *app.State, ps *cutil.PageState) (string, error) { ps.Title = "About " + util.AppName ps.Data = util.AppName + " v" + as.BuildInfo.Version return controller.Render(rc, as, &views.About{}, ps, "about") }) }
|