refactor: change template generation from go-elem to templ and clean up the repository

This commit is contained in:
Patryk Hegenberg 2024-11-27 09:38:26 +01:00
parent f6b6f81826
commit a3dc4eddfa
19 changed files with 842 additions and 874 deletions

11
controllers/render.go Normal file
View file

@ -0,0 +1,11 @@
package controllers
import (
"echoTest/templates"
"github.com/labstack/echo/v4"
)
func (c *Controller) RenderBewertungenRoute(ctx echo.Context) error {
return templates.BewertungenPage(*c.Bewertungen, *c.MaxPunkte).Render(ctx.Request().Context(), ctx.Response().Writer)
}