hatmill/example/example.go

21 lines
316 B
Go
Raw Normal View History

2019-03-22 03:31:24 +00:00
package main
import (
h "gitlab.codemonkeysoftware.com/b/hatmill"
"os"
2019-03-22 03:31:24 +00:00
)
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.WriteDocument(os.Stdout, document)
2019-03-22 03:31:24 +00:00
}