remove templ

This commit is contained in:
Simon Vieille 2025-08-30 00:31:03 +02:00
commit 52e6deaf9d
Signed by: deblan
GPG key ID: 579388D585F70417
3 changed files with 0 additions and 21 deletions

View file

@ -4,8 +4,6 @@ import (
"embed"
"encoding/json"
"github.com/a-h/templ"
"github.com/labstack/echo/v4"
. "maragu.dev/gomponents"
. "maragu.dev/gomponents/html"
)
@ -17,17 +15,6 @@ var (
entrypoints map[string]map[string]map[string][]string
)
func Render(ctx echo.Context, statusCode int, t templ.Component) error {
buf := templ.GetBuffer()
defer templ.ReleaseBuffer(buf)
if err := t.Render(ctx.Request().Context(), buf); err != nil {
return err
}
return ctx.HTML(statusCode, buf.String())
}
func Asset(name string) string {
if manifest == nil {
value, _ := statics.ReadFile("static/manifest.json")