company under development

This commit is contained in:
Sas Andy
2024-05-08 15:56:44 +07:00
parent 9ae7e495c6
commit 1965359fd5
19 changed files with 296 additions and 29 deletions

12
utils/view.utils.go Normal file
View File

@@ -0,0 +1,12 @@
package utils
import (
"github.com/a-h/templ"
"github.com/labstack/echo/v4"
)
func View(c echo.Context, cmp templ.Component) error {
c.Response().Header().Set(echo.HeaderContentType, echo.MIMETextHTML)
return cmp.Render(c.Request().Context(), c.Response().Writer)
}