Convert templates to pongo2

This commit is contained in:
William Bouzourène 2024-12-22 15:17:05 +01:00
parent 7689f2f1d4
commit ee9f0d8777
22 changed files with 311 additions and 136 deletions

View file

@ -2,7 +2,6 @@ package controllers
import (
"fmt"
"strings"
"git.readonly.ch/bouzoure/popvaud-people/helpers"
"git.readonly.ch/bouzoure/popvaud-people/models"
@ -109,6 +108,6 @@ func WelcomePage(c *fiber.Ctx) error {
"Email": user.Email,
"Name": user.Name,
"EmailUpdate": emailUpdate,
"FormErrors": strings.Join(formErrors, "<br>"),
}, "layouts/main")
"FormErrors": formErrors,
})
}