示例#1
0
func attribution(response http.ResponseWriter, request *http.Request) {
	templates["attribution"].ExecuteTemplate(response, "base", Context{
		"Title":     "Image Attribution",
		"Creatures": model.GetPublicCreatures(appengine.NewContext(request)),
	})
}
示例#2
0
func creatures(response http.ResponseWriter, request *http.Request) {
	templates["creatures"].ExecuteTemplate(response, "base", Context{
		"Title":     "Creatures List",
		"Creatures": model.GetPublicCreatures(appengine.NewContext(request)),
	})
}