diff options
Diffstat (limited to 'utils/render.go')
-rw-r--r-- | utils/render.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/utils/render.go b/utils/render.go deleted file mode 100644 index 787c453..0000000 --- a/utils/render.go +++ /dev/null @@ -1,15 +0,0 @@ -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()) -} |