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
|
||
|
}
|