summaryrefslogtreecommitdiff
path: root/srv/src/tpl/tpl.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-13 11:47:29 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-14 15:22:10 -0600
commit2929b4279c7a8128bd305290cc4187b6afb11cde (patch)
treed5ee6a82a21cc3c74c5f5359479b67291b9dbb27 /srv/src/tpl/tpl.go
parentd284fe2d2518c43097c0fea436d2073de14f3ada (diff)
Implement rendering Posts to html
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/*"))