formidable/internal/server/fs.go

21 lines
271 B
Go
Raw Normal View History

package server
import (
"embed"
)
var (
//go:embed template/layouts/* template/blocks/*
templates embed.FS
//go:embed assets/dist/*
assets embed.FS
)
func getEmbeddedTemplates() embed.FS {
return templates
}
func getEmbeddedAssets() embed.FS {
return assets
}