Convert templates to pongo2

This commit is contained in:
William Bouzourène 2024-12-22 15:17:05 +01:00
parent 266cd2f4d2
commit d61e607b8a
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
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,
})
}