Exemplo 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)
}
Exemplo 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())
}
Exemplo 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)
}