Browse Source

feat: embed web assets

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
pull/2054/head
Mark Sagi-Kazar 5 years ago
parent
commit
78fcac7568
No known key found for this signature in database
GPG Key ID: 34CC109EB5ED1C2A
  1. 14
      web/web.go

14
web/web.go

@ -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
}
Loading…
Cancel
Save