Beispiel #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)
}
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)
}