about summary refs log tree commit diff stats
path: root/templates/embed.go
diff options
context:
space:
mode:
authorAlan Pearce2024-06-24 23:28:17 +0200
committerAlan Pearce2024-06-24 23:28:17 +0200
commit6b5a99d1de4420a9334ed9b2119b56b138518c1c (patch)
tree344cec4b3fb144dbc87176246392aefeef43e308 /templates/embed.go
parent49b4d4d4e2bfcb5152b574100755bfbd39ede602 (diff)
downloadwebsite-6b5a99d1de4420a9334ed9b2119b56b138518c1c.tar.lz
website-6b5a99d1de4420a9334ed9b2119b56b138518c1c.tar.zst
website-6b5a99d1de4420a9334ed9b2119b56b138518c1c.zip
use embedded filesystem for server template access
Diffstat (limited to 'templates/embed.go')
-rw-r--r--templates/embed.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/embed.go b/templates/embed.go
new file mode 100644
index 0000000..e7e1f18
--- /dev/null
+++ b/templates/embed.go
@@ -0,0 +1,8 @@
+//go:build embed
+
+package templates
+
+import "embed"
+
+//go:embed *
+var Files embed.FS