From 25fe18973f11d3db61a1ae9ca05f2bd63d3edea9 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 3 Mar 2024 15:05:15 +0100 Subject: view: Replace edit by view parameter The old edit URL parameter allowed to select one different HTML template. A more generic approach is to provide a view parameter which allows to use multiple alternative HTML templates for the same data defined by the Go struct. This makes implementing additional pages like a confirm page for recipe deletion easier. --- view/html/recipe.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/html/recipe.html') diff --git a/view/html/recipe.html b/view/html/recipe.html index a6588e6..43bbb2e 100644 --- a/view/html/recipe.html +++ b/view/html/recipe.html @@ -13,7 +13,7 @@

Portions: {{.Portions}}

original recipe

{{.Notes}}

- + {{ template "footer" }} -- cgit v1.2.3-70-g09d2