mirror of
https://github.com/Bornholm/formidable.git
synced 2024-12-25 00:09:35 +01:00
21 lines
271 B
Go
21 lines
271 B
Go
|
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
|
||
|
}
|