templates/errors.go (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | package templates
import (
g "alin.ovh/gomponents"
. "alin.ovh/gomponents/html"
)
func NotFoundPage(data PageData) g.Node {
return Page(data, []g.Node{
Main(
H3(g.Text("404 — nothing like that here.")),
),
})
}
func ErrorPage(data PageData) g.Node {
return Page(data, []g.Node{
Main(
H3(g.Text("500 — something broke!")),
),
})
}
|