mirror of
https://github.com/nkanaev/yarr.git
synced 2026-07-15 11:06:31 +00:00
24 lines
317 B
Go
24 lines
317 B
Go
//go:build !debug
|
|
|
|
package assets
|
|
|
|
import (
|
|
"embed"
|
|
"html/template"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed static/*
|
|
var static embed.FS
|
|
|
|
//go:embed templates
|
|
var templates embed.FS
|
|
|
|
func Templates() *template.Template {
|
|
return template.Must(template.ParseFS(templates, "*.html"))
|
|
}
|
|
|
|
func StaticFS() fs.FS {
|
|
return static
|
|
}
|