| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package handlers |
||
| 2 | |||
| 3 | import ( |
||
| 4 | "github.com/a-h/templ" |
||
| 5 | "github.com/labstack/echo/v4" |
||
| 6 | ) |
||
| 7 | |||
| 8 | func Render(c echo.Context, _ int, t templ.Component) error { |
||
| 9 | c.Response().Writer.Header().Set(echo.HeaderContentType, echo.MIMETextHTML) |
||
| 10 | return t.Render(c.Request().Context(), c.Response()) |
||
| 11 | } |
||
| 12 |