summaryrefslogtreecommitdiff
path: root/srv/src/tpl/tpl.go
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/tpl/tpl.go')
-rw-r--r--srv/src/tpl/tpl.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/srv/src/tpl/tpl.go b/srv/src/tpl/tpl.go
new file mode 100644
index 0000000..1dd98ba
--- /dev/null
+++ b/srv/src/tpl/tpl.go
@@ -0,0 +1,12 @@
+// Package tpl contains template files which are used to render the blog.
+package tpl
+
+import (
+ "embed"
+ html_tpl "html/template"
+)
+
+//go:embed *
+var fs embed.FS
+
+var HTML = html_tpl.Must(html_tpl.ParseFS(fs, "html/*"))