aboutsummaryrefslogtreecommitdiff
path: root/static/templates.go
diff options
context:
space:
mode:
Diffstat (limited to 'static/templates.go')
-rwxr-xr-xstatic/templates.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/static/templates.go b/static/templates.go
index 28a057a..859f075 100755
--- a/static/templates.go
+++ b/static/templates.go
@@ -1,16 +1,22 @@
//go:build embed
-// +build embed
package static
import "embed"
+// Templates is the asset filesystem compiled into the binary.
+//
//go:embed *
var Templates embed.FS
+
+// Enabled reports that assets are embedded in this build.
var Enabled bool = true
+// StaticPath is accepted for parity with the non-embed build, where it names the
+// directory assets are read from. It is ignored here.
var StaticPath string
+// CopyTemplatesToMemory is a no-op in this build: the assets are already embedded.
func CopyTemplatesToMemory() {
_ = StaticPath
}