Elements and HTML Generation
Elements and HTML Generation
gofh provides a fluent API for creating HTML elements:
gofh.Div(
gofh.H1("Title"),
gofh.P("Paragraph"),
gofh.A("Click me").Href("#").Class("button"),
)
This generates clean, readable HTML without the need for templates.
Last updated