feat: embed web assets
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
3f0ca9b361
commit
78fcac7568
1 changed files with 14 additions and 0 deletions
14
web/web.go
Normal file
14
web/web.go
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
package web
|
||||||
|
|
||||||
|
import (
|
||||||
|
"embed"
|
||||||
|
"io/fs"
|
||||||
|
)
|
||||||
|
|
||||||
|
//go:embed static/* templates/* themes/*
|
||||||
|
var files embed.FS
|
||||||
|
|
||||||
|
// FS returns a filesystem with the default web assets.
|
||||||
|
func FS() fs.FS {
|
||||||
|
return files
|
||||||
|
}
|
Reference in a new issue