package handlers import ( "html/template" "mealprep/auth" "mealprep/database" "net/http" "strconv" "strings" ) // MealsHandler handles the meals page func MealsHandler(w http.ResponseWriter, r *http.Request) { userID := auth.GetUserID(r) meals, err := database.GetAllMeals(userID) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } tmpl := `
{{.Instructions}}
{{.Instructions}}
{{.Instructions}}