예제 #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)
}