diff options
author | Alan Pearce | 2024-06-24 23:28:17 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-24 23:28:17 +0200 |
commit | 6b5a99d1de4420a9334ed9b2119b56b138518c1c (patch) | |
tree | 344cec4b3fb144dbc87176246392aefeef43e308 /templates/dev.go | |
parent | 49b4d4d4e2bfcb5152b574100755bfbd39ede602 (diff) | |
download | website-6b5a99d1de4420a9334ed9b2119b56b138518c1c.tar.lz website-6b5a99d1de4420a9334ed9b2119b56b138518c1c.tar.zst website-6b5a99d1de4420a9334ed9b2119b56b138518c1c.zip |
use embedded filesystem for server template access
Diffstat (limited to 'templates/dev.go')
-rw-r--r-- | templates/dev.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/dev.go b/templates/dev.go new file mode 100644 index 0000000..37a6416 --- /dev/null +++ b/templates/dev.go @@ -0,0 +1,9 @@ +//go:build !embed + +package templates + +import ( + "os" +) + +var Files = os.DirFS("templates/") |