Added element function generator
This commit is contained in:
17
example/example.go
Normal file
17
example/example.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user