Compare commits
2 Commits
6c3310b83d
...
715ac03c3b
Author | SHA1 | Date | |
---|---|---|---|
|
715ac03c3b | ||
|
1b888a3513 |
4
main.go
4
main.go
@ -23,7 +23,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const VERSION = "v2"
|
const VERSION = "v3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
logger *slog.Logger
|
logger *slog.Logger
|
||||||
@ -264,7 +264,7 @@ func getPage(layout, page string) (tmpl *template.Template, err error) { // {{{
|
|||||||
if flagDev {
|
if flagDev {
|
||||||
tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(os.DirFS("."), filenames...)
|
tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(os.DirFS("."), filenames...)
|
||||||
} else {
|
} else {
|
||||||
tmpl, err = template.New("main.gotmpl").ParseFS(viewFS, filenames...)
|
tmpl, err = template.New("main.gotmpl").Funcs(funcMap).ParseFS(viewFS, filenames...)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = we.Wrap(err).Log()
|
err = we.Wrap(err).Log()
|
||||||
|
Loading…
Reference in New Issue
Block a user