1 2 3 4 5 6 7 8 9 10
package handler import ( "github.com/a-h/templ" "github.com/labstack/echo/v4" ) func render(c echo.Context, component templ.Component) error { return component.Render(c.Request().Context(), c.Response().Writer) }