diff --git a/example/example.go b/example/example.go
deleted file mode 100644
index e22ca84..0000000
--- a/example/example.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package main
-
-import (
- "gitlab.codemonkeysoftware.net/b/hatmill"
- h "gitlab.codemonkeysoftware.net/b/hatmill/html5"
- "os"
-)
-
-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.Data("coolness", "awesome"))(),
- ),
- ),
- )
- hatmill.WriteDocument(os.Stdout, document)
-}
diff --git a/html5/generated.go b/html5/generated.go
index a40339d..ae26696 100644
--- a/html5/generated.go
+++ b/html5/generated.go
@@ -3,13 +3,13 @@
package html5
-import . "gitlab.codemonkeysoftware.net/b/hatmill"
+import "gitlab.codemonkeysoftware.net/b/hatmill"
// Body creates a
element.
-func Body(attribs ...Attrib) func(children ...Term) *ParentElement {
- return func(children ...Term) *ParentElement {
- return &ParentElement{
- EmptyElement: EmptyElement{
+func Body(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.ParentElement {
+ return func(children ...hatmill.Term) *hatmill.ParentElement {
+ return &hatmill.ParentElement{
+ EmptyElement: hatmill.EmptyElement{
TagName: "body",
Attribs: attribs,
},
@@ -19,10 +19,10 @@ func Body(attribs ...Attrib) func(children ...Term) *ParentElement {
}
// Div creates a element.
-func Div(attribs ...Attrib) func(children ...Term) *ParentElement {
- return func(children ...Term) *ParentElement {
- return &ParentElement{
- EmptyElement: EmptyElement{
+func Div(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.ParentElement {
+ return func(children ...hatmill.Term) *hatmill.ParentElement {
+ return &hatmill.ParentElement{
+ EmptyElement: hatmill.EmptyElement{
TagName: "div",
Attribs: attribs,
},
@@ -32,10 +32,10 @@ func Div(attribs ...Attrib) func(children ...Term) *ParentElement {
}
// Head creates a element.
-func Head(attribs ...Attrib) func(children ...Term) *ParentElement {
- return func(children ...Term) *ParentElement {
- return &ParentElement{
- EmptyElement: EmptyElement{
+func Head(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.ParentElement {
+ return func(children ...hatmill.Term) *hatmill.ParentElement {
+ return &hatmill.ParentElement{
+ EmptyElement: hatmill.EmptyElement{
TagName: "head",
Attribs: attribs,
},
@@ -45,10 +45,10 @@ func Head(attribs ...Attrib) func(children ...Term) *ParentElement {
}
// Html creates a element.
-func Html(attribs ...Attrib) func(children ...Term) *ParentElement {
- return func(children ...Term) *ParentElement {
- return &ParentElement{
- EmptyElement: EmptyElement{
+func Html(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.ParentElement {
+ return func(children ...hatmill.Term) *hatmill.ParentElement {
+ return &hatmill.ParentElement{
+ EmptyElement: hatmill.EmptyElement{
TagName: "html",
Attribs: attribs,
},
@@ -58,18 +58,18 @@ func Html(attribs ...Attrib) func(children ...Term) *ParentElement {
}
// Img creates a
element.
-func Img(attribs ...Attrib) EmptyElement {
- return EmptyElement{
+func Img(attribs ...hatmill.Attrib) hatmill.EmptyElement {
+ return hatmill.EmptyElement{
TagName: "img",
Attribs: attribs,
}
}
// Li creates a
element.
-func Li(attribs ...Attrib) func(children ...Term) *ParentElement {
- return func(children ...Term) *ParentElement {
- return &ParentElement{
- EmptyElement: EmptyElement{
+func Li(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.ParentElement {
+ return func(children ...hatmill.Term) *hatmill.ParentElement {
+ return &hatmill.ParentElement{
+ EmptyElement: hatmill.EmptyElement{
TagName: "li",
Attribs: attribs,
},
@@ -79,10 +79,10 @@ func Li(attribs ...Attrib) func(children ...Term) *ParentElement {
}
// Span creates a element.
-func Span(attribs ...Attrib) func(children ...Term) *ParentElement {
- return func(children ...Term) *ParentElement {
- return &ParentElement{
- EmptyElement: EmptyElement{
+func Span(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.ParentElement {
+ return func(children ...hatmill.Term) *hatmill.ParentElement {
+ return &hatmill.ParentElement{
+ EmptyElement: hatmill.EmptyElement{
TagName: "span",
Attribs: attribs,
},
@@ -92,10 +92,10 @@ func Span(attribs ...Attrib) func(children ...Term) *ParentElement {
}
// Title creates a element.
-func Title(attribs ...Attrib) func(children ...Term) *ParentElement {
- return func(children ...Term) *ParentElement {
- return &ParentElement{
- EmptyElement: EmptyElement{
+func Title(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.ParentElement {
+ return func(children ...hatmill.Term) *hatmill.ParentElement {
+ return &hatmill.ParentElement{
+ EmptyElement: hatmill.EmptyElement{
TagName: "title",
Attribs: attribs,
},
@@ -105,10 +105,10 @@ func Title(attribs ...Attrib) func(children ...Term) *ParentElement {
}
// Ul creates a