예제 #1
0
func (this *indexController) get(w http.ResponseWriter, req *http.Request) {
	vm := viewmodels.Get("Index Page", "index")
	w.Header().Add("Content Type", "text/html")
	this.template.Execute(w, vm)
}
예제 #2
0
func (this *categoriesController) get(w http.ResponseWriter, req *http.Request) {
	vm := viewmodels.Get("Categoreis Page", "categories")
	w.Header().Add("Content Type", "text/html")
	this.template.Execute(w, vm)
}