summaryrefslogtreecommitdiff
path: root/src/util/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/template.go')
-rw-r--r--src/util/template.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/util/template.go b/src/util/template.go
deleted file mode 100644
index ec5ac18..0000000
--- a/src/util/template.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package util
-
-import (
- "path"
- "strings"
- "text/template"
-)
-
-func NewTemplate(filenames ...string) *template.Template {
- return template.Must(template.New(path.Base(filenames[0])).
- Funcs(template.FuncMap{
- // Form input helpers
- "hasprefix": strings.HasPrefix,
- }).
- ParseFiles(filenames...))
-}