Esempio n. 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)
}
Esempio n. 2
0
func NotFound(c web.C, w http.ResponseWriter, r *http.Request) {
	template.Render(c, w, r, append(templates, "404.html"),
		template.NewContext())
}
Esempio n. 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)
}