summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app/handler/links/show.go')
-rw-r--r--pkg/app/handler/links/show.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/app/handler/links/show.go b/pkg/app/handler/links/show.go
new file mode 100644
index 0000000..4e5c5c6
--- /dev/null
+++ b/pkg/app/handler/links/show.go
@@ -0,0 +1,19 @@
+package links
+
+import (
+ "html/template"
+ "net/http"
+)
+
+// Show renders a template to show the landing page of the application
+func Show(w http.ResponseWriter, r *http.Request) {
+
+ templates := template.Must(
+ template.Must(
+ template.New("Show").
+ Funcs(getFuncMap()).
+ ParseGlob("web/templates/layout/*.tmpl")).
+ ParseGlob("web/templates/links/show.tmpl"))
+
+ templates.ExecuteTemplate(w, "show.tmpl", getPageData(w, r, "show"))
+}