示例#1
0
func About(c web.C, w http.ResponseWriter, r *http.Request) {
	ctx := template.NewContext()
	ctx.Add("AboutPage", true)
	template.Render(c, w, r, append(templates, "about.html"), ctx)
}
示例#2
0
func NotFound(c web.C, w http.ResponseWriter, r *http.Request) {
	template.Render(c, w, r, append(templates, "404.html"),
		template.NewContext())
}
示例#3
0
func Home(c web.C, w http.ResponseWriter, r *http.Request) {
	ctx := template.NewContext()
	ctx.Add("HomePage", true)
	template.Render(c, w, r, append(templates, "home.html"), ctx)
}