16 lines
298 B
Go
Raw Permalink Normal View History

2025-01-21 14:00:40 +01:00
package app
import (
"strings"
2025-02-25 17:01:59 +01:00
"git.urbach.dev/go/web"
"git.urbach.dev/go/web/send"
2025-01-21 14:00:40 +01:00
)
func Render(ctx web.Context, head string, body string) error {
html := HTML
html = strings.Replace(html, "{head}", head, 1)
html = strings.Replace(html, "{body}", body, 1)
return send.HTML(ctx, html)
}