basic sample done

This commit is contained in:
Beto
2024-03-03 20:29:43 -06:00
parent b18b316775
commit 90c76a12af
6 changed files with 55 additions and 6 deletions

10
handler/util.go Normal file
View File

@@ -0,0 +1,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())
}