hatmill/example/example.go

18 lines
315 B
Go

package main
import (
"os"
h "gitlab.codemonkeysoftware.com/b/hatmill"
)
func main() {
document := h.Html()(
h.Div()(
h.Img(h.Id("profile-photo")),
h.Text("hello hatmill!"),
h.Div(h.Disabled())(),
),
)
h.WriteDocument(os.Stdout, document)
}