package view import ( "net/http" "xengineering.eu/ceres/model" ) func RecipesRead(w http.ResponseWriter, r *http.Request) { recipes := make(model.Recipes, 0) err := recipes.Read() if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } err = html.ExecuteTemplate(w, "recipes", recipes) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } }