assets.go
| 1 | // Package vidarchive embeds the web assets into the binary, so nothing has to |
| 2 | // locate the source tree at runtime. |
| 3 | package vidarchive |
| 4 | |
| 5 | import "embed" |
| 6 | |
| 7 | //go:embed web/templates/*.html |
| 8 | var 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 |
| 14 | var StaticFS embed.FS |
| 15 |