func userHandler(w http.ResponseWriter, r *http.Request) { s, _ := session.Manager.SessionStart(w, r) defer s.SessionRelease(w) profile := s.Get("profile") templates.Render(w, templates.HomePage, profile) }
func loginHandler(w http.ResponseWriter, r *http.Request) { templates.Render(w, templates.LoginPage, nil) }