Added attribute function generator and more element defs
This commit is contained in:
@ -1,17 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
h "gitlab.codemonkeysoftware.com/b/hatmill"
|
||||
h "gitlab.codemonkeysoftware.com/b/hatmill"
|
||||
"os"
|
||||
)
|
||||
|
||||
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)
|
||||
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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user