fix: I still have no idea how pkger works
This commit is contained in:
parent
87ed3936b0
commit
4b133a598d
1 changed files with 1 additions and 4 deletions
5
app.go
5
app.go
|
@ -8,9 +8,6 @@ import (
|
|||
"github.com/markbates/pkger"
|
||||
)
|
||||
|
||||
func init() {
|
||||
pkger.Include("/templates")
|
||||
}
|
||||
|
||||
type App struct {
|
||||
Config Config
|
||||
|
@ -42,7 +39,7 @@ func (app *App) data(ctx *fiber.Ctx, d fiber.Map) fiber.Map {
|
|||
}
|
||||
|
||||
func New(configs ...Config) *App {
|
||||
viewsFs := utils.JoinedFS(pkger.Dir("/templates"))
|
||||
viewsFs := utils.JoinedFS(pkger.Dir("git.ddd.rip/ptrcnull/modweb:/templates"))
|
||||
views := html.NewFileSystem(viewsFs, ".html")
|
||||
views.Reload(true)
|
||||
app := &App{
|
||||
|
|
Loading…
Reference in a new issue