Example #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, "")
}
Example #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, "")
}
Example #3
0
func meatDetail(w http.ResponseWriter, r *http.Request) {
	template.Get("meat/detail").Render(w, "")
}
Example #4
0
func meatNewForm(w http.ResponseWriter, r *http.Request) {
	template.Get("meat/new").Render(w, "")
}