quite a lot of things

This commit is contained in:
Arkaprabha Chakraborty
2025-12-06 03:05:44 +05:30
parent 39c61b7790
commit 28733e22d3
42 changed files with 4214 additions and 204 deletions

12
internal/web/render.go Normal file
View File

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