fix: I have no idea how pkger works
This commit is contained in:
parent
771ab1d8c2
commit
87ed3936b0
1 changed files with 4 additions and 1 deletions
5
app.go
5
app.go
|
@ -8,6 +8,10 @@ import (
|
||||||
"github.com/markbates/pkger"
|
"github.com/markbates/pkger"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
pkger.Include("/templates")
|
||||||
|
}
|
||||||
|
|
||||||
type App struct {
|
type App struct {
|
||||||
Config Config
|
Config Config
|
||||||
modules map[string]Module
|
modules map[string]Module
|
||||||
|
@ -23,7 +27,6 @@ func (app *App) data(ctx *fiber.Ctx, d fiber.Map) fiber.Map {
|
||||||
"app": app,
|
"app": app,
|
||||||
"modules": app.modules,
|
"modules": app.modules,
|
||||||
"auth": app.authHandlers,
|
"auth": app.authHandlers,
|
||||||
//"username": "ptrcnull",
|
|
||||||
}
|
}
|
||||||
for k, v := range d {
|
for k, v := range d {
|
||||||
base[k] = v
|
base[k] = v
|
||||||
|
|
Loading…
Reference in a new issue