Skip to content
Trilha

Error catalog

E_NO_LAYOUT_FUNC

layout.go has no Layout function

The scanner found layout.go but no Layout function, so the tree's wrapper is missing.

Fix

Name the handler Layout with the (c *trilha.Ctx, children h.Node) signature.

func Layout(c *trilha.Ctx, children h.Node) (h.Node, error) { return h.Html(children), nil }