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
12
controllers/controller.go
Normal file
12
controllers/controller.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package controllers
|
||||
|
||||
import "echoTest/models"
|
||||
|
||||
type Controller struct {
|
||||
Bewertungen *[]models.Bewertung
|
||||
MaxPunkte *models.MaxPunkte
|
||||
}
|
||||
|
||||
func NewController(bewertungen *[]models.Bewertung, maxPunkte *models.MaxPunkte) *Controller {
|
||||
return &Controller{Bewertungen: bewertungen, MaxPunkte: maxPunkte}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue