refactor: change template generation from go-elem to templ and clean up the repository
This commit is contained in:
parent
f6b6f81826
commit
a3dc4eddfa
19 changed files with 842 additions and 874 deletions
11
controllers/render.go
Normal file
11
controllers/render.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue