hatmill/html5/generated.go

142 lines
3.4 KiB
Go
Raw Normal View History

// GENERATED BY gitlab.codemonkeysoftware.net/b/hatmill/internal/codegen
2019-03-22 03:31:24 +00:00
// DO NOT EDIT!
2019-03-25 01:56:24 +00:00
package html5
import "gitlab.codemonkeysoftware.net/b/hatmill"
2019-03-22 03:31:24 +00:00
// Body creates a <body> element.
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",
2019-03-22 03:31:24 +00:00
Attribs: attribs,
},
Children: children,
}
}
}
// Div creates a <div> element.
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,
},
Children: children,
}
2019-03-22 03:31:24 +00:00
}
}
// Head creates a <head> element.
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",
2019-03-22 03:31:24 +00:00
Attribs: attribs,
},
Children: children,
}
}
}
// Html creates a <html> element.
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,
},
Children: children,
}
}
}
// Img creates a <img> element.
func Img(attribs ...hatmill.Attrib) hatmill.EmptyElement {
return hatmill.EmptyElement{
TagName: "img",
Attribs: attribs,
}
}
// Li creates a <li> element.
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",
2019-03-22 03:31:24 +00:00
Attribs: attribs,
},
Children: children,
}
}
}
2019-03-23 06:42:05 +00:00
// Span creates a <span> element.
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",
2019-03-23 06:42:05 +00:00
Attribs: attribs,
},
Children: children,
}
}
}
// Title creates a <title> element.
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",
2019-03-23 06:42:05 +00:00
Attribs: attribs,
},
Children: children,
}
}
}
2019-03-23 06:43:48 +00:00
// Ul creates a <ul> element.
func Ul(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.ParentElement {
return func(children ...hatmill.Term) *hatmill.ParentElement {
return &hatmill.ParentElement{
EmptyElement: hatmill.EmptyElement{
TagName: "ul",
2019-03-23 06:43:48 +00:00
Attribs: attribs,
},
Children: children,
}
}
}
2019-03-25 02:35:40 +00:00
// Disabled creates a "disabled" attribute
func Disabled() hatmill.Attrib {
return hatmill.Attrib{
Key: "disabled",
}
}
2019-03-25 02:35:40 +00:00
// Id creates a "id" attribute
func Id(value string) hatmill.Attrib {
return hatmill.Attrib{
Key: "id",
Value: value,
}
}
2019-03-25 02:35:40 +00:00
// Src creates a "src" attribute
func Src(value string) hatmill.Attrib {
return hatmill.Attrib{
Key: "src",
Value: value,
}
}