basic sample done
This commit is contained in:
10
handler/util.go
Normal file
10
handler/util.go
Normal 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())
|
||||
}
|
||||
Reference in New Issue
Block a user