From 69e6374a75c0a169b1e5869089710bbce2fa0503 Mon Sep 17 00:00:00 2001 From: Chris kerr Date: Mon, 27 May 2024 22:06:26 -0400 Subject: [PATCH] refactor templateFiles --- src/routes/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/template.go b/src/routes/template.go index 01c4bca..5997e10 100644 --- a/src/routes/template.go +++ b/src/routes/template.go @@ -17,14 +17,14 @@ const ( ) // Define the common layout templates filenames -var layoutFiles = []string{ +var templateFiles = []string{ "#layout.html", "header.html", "footer.html", } // Initialize the common templates with full paths -var layout = utils.PrependDir(templatesDir, layoutFiles) +var layout = utils.PrependDir(templatesDir, templateFiles) func renderTemplate(w http.ResponseWriter, data PageData, view string) {