summaryrefslogtreecommitdiff
path: root/templates.go
diff options
context:
space:
mode:
Diffstat (limited to 'templates.go')
-rw-r--r--templates.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/templates.go b/templates.go
deleted file mode 100644
index 2769926..0000000
--- a/templates.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package main
-
-import (
- "log"
- "net/http"
- "text/template"
-)
-
-func setupTemplates() *template.Template {
- t, err := template.ParseGlob(config.Templates + "/*.html")
- if err != nil {
- panic(err)
- }
- return t
-}
-
-func ServeTemplate(w http.ResponseWriter, name string, data interface{}) {
- err := templates.ExecuteTemplate(w, name, data)
- if err != nil {
- log.Print(err)
- http.Error(w, http.StatusText(404), 404)
- return
- }
-}