mirror of
https://github.com/nkanaev/yarr.git
synced 2026-07-15 11:06:31 +00:00
fix tests
This commit is contained in:
@@ -15,9 +15,10 @@ var static embed.FS
|
||||
var templates embed.FS
|
||||
|
||||
func Templates() *template.Template {
|
||||
return template.Must(template.ParseFS(templates, "*.html"))
|
||||
return template.Must(template.ParseFS(templates, "templates/*.html"))
|
||||
}
|
||||
|
||||
func StaticFS() fs.FS {
|
||||
return static
|
||||
fs, _ := fs.Sub(static, "static")
|
||||
return fs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user