16 lines
366 B
Go
16 lines
366 B
Go
package controllers
|
|
|
|
import (
|
|
"context"
|
|
"echoTest/models"
|
|
"echoTest/templates"
|
|
"io"
|
|
|
|
"github.com/a-h/templ"
|
|
)
|
|
|
|
func (c *Controller) CreateBewertungNode(bewertung models.Bewertung) templ.Component {
|
|
return templ.ComponentFunc(func(ctx context.Context, w io.Writer) error {
|
|
return templates.BewertungenTable([]models.Bewertung{bewertung}).Render(ctx, w)
|
|
})
|
|
}
|