78 lines
1.7 KiB
Go
78 lines
1.7 KiB
Go
// GENERATED BY gitlab.codemonkeysoftware.net/b/hatmill/internal/elementgen
|
|
// DO NOT EDIT!
|
|
|
|
package hatmill
|
|
|
|
// Html creates a <html> element.
|
|
func Html(attribs ...Attrib) func(children ...Term) *ParentElement {
|
|
return func(children ...Term) *ParentElement {
|
|
return &ParentElement{
|
|
EmptyElement: EmptyElement{
|
|
TagName: "html",
|
|
Attribs: attribs,
|
|
},
|
|
Children: children,
|
|
}
|
|
}
|
|
}
|
|
|
|
// Head creates a <head> element.
|
|
func Head(attribs ...Attrib) func(children ...Term) *ParentElement {
|
|
return func(children ...Term) *ParentElement {
|
|
return &ParentElement{
|
|
EmptyElement: EmptyElement{
|
|
TagName: "head",
|
|
Attribs: attribs,
|
|
},
|
|
Children: children,
|
|
}
|
|
}
|
|
}
|
|
|
|
// Body creates a <body> element.
|
|
func Body(attribs ...Attrib) func(children ...Term) *ParentElement {
|
|
return func(children ...Term) *ParentElement {
|
|
return &ParentElement{
|
|
EmptyElement: EmptyElement{
|
|
TagName: "body",
|
|
Attribs: attribs,
|
|
},
|
|
Children: children,
|
|
}
|
|
}
|
|
}
|
|
|
|
// Div creates a <div> element.
|
|
func Div(attribs ...Attrib) func(children ...Term) *ParentElement {
|
|
return func(children ...Term) *ParentElement {
|
|
return &ParentElement{
|
|
EmptyElement: EmptyElement{
|
|
TagName: "div",
|
|
Attribs: attribs,
|
|
},
|
|
Children: children,
|
|
}
|
|
}
|
|
}
|
|
|
|
// Img creates a <img> element.
|
|
func Img(attribs ...Attrib) EmptyElement {
|
|
return EmptyElement{
|
|
TagName: "img",
|
|
Attribs: attribs,
|
|
}
|
|
}
|
|
|
|
// Span creates a <span> element.
|
|
func Span(attribs ...Attrib) func(children ...Term) *ParentElement {
|
|
return func(children ...Term) *ParentElement {
|
|
return &ParentElement{
|
|
EmptyElement: EmptyElement{
|
|
TagName: "span",
|
|
Attribs: attribs,
|
|
},
|
|
Children: children,
|
|
}
|
|
}
|
|
}
|