summaryrefslogtreecommitdiff
path: root/static/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'static/doc.go')
-rw-r--r--static/doc.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/static/doc.go b/static/doc.go
new file mode 100644
index 0000000..a578372
--- /dev/null
+++ b/static/doc.go
@@ -0,0 +1,8 @@
+// Package static provides the HTML templates, stylesheet and images the
+// frontend serves.
+//
+// It has two implementations selected by the 'embed' build tag. With the tag,
+// the assets are compiled into the binary via go:embed. Without it, they are
+// read from the directory named by StaticPath at startup and held in memory,
+// which is what makes editing templates without a rebuild possible.
+package static