From ba327ee030a3b8abdbf9f5d10987060648dbb10e Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 12 Feb 2023 19:46:48 +0100 Subject: Make add.html a template This allows to use partial HTML files via Go's templating features. --- data/static/add.html | 36 ------------------------------------ data/templates/add.html | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 36 deletions(-) delete mode 100644 data/static/add.html create mode 100644 data/templates/add.html (limited to 'data') diff --git a/data/static/add.html b/data/static/add.html deleted file mode 100644 index 15d9f0e..0000000 --- a/data/static/add.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - Recipes - - - - - - - - - -
-

Add a recipe

-
- -
-
-
-
- -
- - -
- - - - diff --git a/data/templates/add.html b/data/templates/add.html new file mode 100644 index 0000000..39929dd --- /dev/null +++ b/data/templates/add.html @@ -0,0 +1,26 @@ + + + + + {{ template "head.html" }} + + + +
+

Add a recipe

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