hatmill/example/example.go

21 lines
347 B
Go

package main
import (
h "gitlab.codemonkeysoftware.net/b/hatmill"
"os"
)
func main() {
document := h.Html()(
h.Head()(),
h.Body()(
h.Div()(
h.Img(h.Src("./me.jpg"), h.Id("profile-photo")),
h.Text("hello hatmill!"),
h.Div(h.Disabled(), h.Data("coolness", "awesome"))(),
),
),
)
h.WriteDocument(os.Stdout, document)
}