hatmill/example/example.go

18 lines
315 B
Go
Raw Normal View History

2019-03-22 03:31:24 +00:00
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)
}