Begin refactoring structure

This commit is contained in:
Maximilian
2024-07-01 21:19:48 -05:00
parent 86ff949eae
commit ce85d6b77b
23 changed files with 55 additions and 58 deletions

View File

@ -9,9 +9,9 @@ import (
"net/http"
)
var templates = make(map[string]*template.Template) // This is only used here, does not need to be in app.App
var templates = make(map[string]*template.Template) // This is only used here, does not need to be in app.Deps
func BuildPages(app *app.App) error {
func BuildPages(app *app.Deps) error {
basePath := app.Config.Template.BaseName
baseContent, err := app.Res.ReadFile(basePath)