assets.go
⎇
Raw
1// Package vidarchive embeds the web assets into the binary, so nothing has to
2// locate the source tree at runtime.
3package vidarchive
4
5import "embed"
6
7//go:embed web/templates/*.html
8var TemplatesFS embed.FS
9
10// The all: prefix also embeds files embed would otherwise skip, such as a
11// dotfile added later.
12//
13//go:embed all:web/static
14var StaticFS embed.FS
15