aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app/recent/utils.go')
-rw-r--r--pkg/app/recent/utils.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/app/recent/utils.go b/pkg/app/recent/utils.go
new file mode 100644
index 0000000..53c0e32
--- /dev/null
+++ b/pkg/app/recent/utils.go
@@ -0,0 +1,19 @@
+// miscellaneous utility functions used for the landing page of the application
+
+package recent
+
+import (
+ "html/template"
+ "net/http"
+)
+
+// renderIndexTemplate renders all templates used for the landing page
+func renderRecentTemplate(w http.ResponseWriter, templateData interface{}) {
+ templates := template.Must(
+ template.Must(
+ template.New("Show").
+ ParseGlob("web/templates/layout/*.tmpl")).
+ ParseGlob("web/templates/recent/recent.tmpl"))
+
+ templates.ExecuteTemplate(w, "recent.tmpl", templateData)
+}