Added element function generator

This commit is contained in:
2019-03-21 21:31:24 -06:00
parent 809ec2cff2
commit 8517cab0f5
6 changed files with 184 additions and 24 deletions

17
example/example.go Normal file
View File

@ -0,0 +1,17 @@
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)
}