Beispiel #1
0
func meatList(w http.ResponseWriter, r *http.Request) {
	//_ := &MeatForm{name:"Hi there"}
	//meatsChan := api.GetMeats()
	//x := <- meatsChan

	template.Get("meat/list").Render(w, "")
}
Beispiel #2
0
func userLoginForm(w http.ResponseWriter, r *http.Request) {
	s := session.Get(w, r)
	if s.IsAuthenticated() {
		fmt.Fprintln(w, "You are authed!")
	}
	template.Get("user/login").Render(w, "")
}
Beispiel #3
0
func meatDetail(w http.ResponseWriter, r *http.Request) {
	template.Get("meat/detail").Render(w, "")
}
Beispiel #4
0
func meatNewForm(w http.ResponseWriter, r *http.Request) {
	template.Get("meat/new").Render(w, "")
}