Declarative routes
Describe an endpoint with an Endpoint value. Methods and paths are normalized before registration.
Constellation is a small web framework for Go. Declare an endpoint, return HTML from a handler, and the framework wraps it in a page.
Describe an endpoint with an Endpoint value. Methods and paths are normalized before registration.
Build markup with one helper per HTML tag. Text and attributes are escaped for you.
No external dependencies. The stylesheet and documentation are embedded into the binary.
Every HTML tag has a helper. Nest components with Children and let the renderer escape text and attributes.
Read the elements guide →elements.Div(constellation.WebComponent{
Class: "page-shell",
Children: []any{
elements.H1(constellation.WebComponent{Text: "Hello"}),
elements.P(constellation.WebComponent{Text: "Built with Go."}),
},
})