mirror of
https://github.com/nkanaev/yarr.git
synced 2026-07-15 11:06:31 +00:00
20 lines
286 B
Go
20 lines
286 B
Go
//go:build debug
|
|
|
|
package assets
|
|
|
|
import (
|
|
"html/template"
|
|
"io/fs"
|
|
"os"
|
|
)
|
|
|
|
const rootDir = "src/assets"
|
|
|
|
func Templates() *template.Template {
|
|
return template.Must(template.ParseGlob(rootDir + "/templates/*.html"))
|
|
}
|
|
|
|
func StaticFS() fs.FS {
|
|
return os.DirFS(rootDir + "/static")
|
|
}
|