remove templ
This commit is contained in:
parent
3b1168ac88
commit
52e6deaf9d
3 changed files with 0 additions and 21 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue