package utils import ( "net/http" "github.com/a-h/templ" "github.com/labstack/echo/v4" ) func Render(c echo.Context, cmp templ.Component) error { c.Response().WriteHeader(http.StatusOK) c.Response().Header().Set(echo.HeaderContentType, echo.MIMETextHTMLCharsetUTF8) return cmp.Render(c.Request().Context(), c.Response()) }