2019-03-24 21:42:48 +00:00
|
|
|
// 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
|
|
|
|
|
2019-03-25 02:32:15 +00:00
|
|
|
import "gitlab.codemonkeysoftware.net/b/hatmill"
|
2019-03-22 03:31:24 +00:00
|
|
|
|
2019-03-24 21:42:48 +00:00
|
|
|
// Body creates a <body> element.
|
2019-03-25 02:46:38 +00:00
|
|
|
func Body(attribs ...hatmill.Attrib) func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return hatmill.ParentElement{
|
2019-03-29 02:18:25 +00:00
|
|
|
VoidElement: hatmill.VoidElement{
|
2019-03-24 21:42:48 +00:00
|
|
|
TagName: "body",
|
2019-03-22 03:31:24 +00:00
|
|
|
Attribs: attribs,
|
|
|
|
},
|
|
|
|
Children: children,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-03-22 04:06:41 +00:00
|
|
|
|
2019-03-24 21:42:48 +00:00
|
|
|
// Div creates a <div> element.
|
2019-03-25 02:46:38 +00:00
|
|
|
func Div(attribs ...hatmill.Attrib) func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return hatmill.ParentElement{
|
2019-03-29 02:18:25 +00:00
|
|
|
VoidElement: hatmill.VoidElement{
|
2019-03-24 21:42:48 +00:00
|
|
|
TagName: "div",
|
2019-03-22 03:49:26 +00:00
|
|
|
Attribs: attribs,
|
|
|
|
},
|
|
|
|
Children: children,
|
|
|
|
}
|
2019-03-22 03:31:24 +00:00
|
|
|
}
|
|
|
|
}
|
2019-03-22 04:06:41 +00:00
|
|
|
|
2019-03-24 21:42:48 +00:00
|
|
|
// Head creates a <head> element.
|
2019-03-25 02:46:38 +00:00
|
|
|
func Head(attribs ...hatmill.Attrib) func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return hatmill.ParentElement{
|
2019-03-29 02:18:25 +00:00
|
|
|
VoidElement: hatmill.VoidElement{
|
2019-03-24 21:42:48 +00:00
|
|
|
TagName: "head",
|
2019-03-22 03:31:24 +00:00
|
|
|
Attribs: attribs,
|
|
|
|
},
|
|
|
|
Children: children,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-03-22 04:06:41 +00:00
|
|
|
|
2019-03-24 21:42:48 +00:00
|
|
|
// Html creates a <html> element.
|
2019-03-25 02:46:38 +00:00
|
|
|
func Html(attribs ...hatmill.Attrib) func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return hatmill.ParentElement{
|
2019-03-29 02:18:25 +00:00
|
|
|
VoidElement: hatmill.VoidElement{
|
2019-03-24 21:42:48 +00:00
|
|
|
TagName: "html",
|
2019-03-22 03:49:26 +00:00
|
|
|
Attribs: attribs,
|
|
|
|
},
|
|
|
|
Children: children,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-03-22 04:06:41 +00:00
|
|
|
|
|
|
|
// Img creates a <img> element.
|
2019-03-29 02:18:25 +00:00
|
|
|
func Img(attribs ...hatmill.Attrib) hatmill.VoidElement {
|
|
|
|
return hatmill.VoidElement{
|
2019-03-22 03:49:26 +00:00
|
|
|
TagName: "img",
|
|
|
|
Attribs: attribs,
|
|
|
|
}
|
|
|
|
}
|
2019-03-22 04:06:41 +00:00
|
|
|
|
2019-03-24 21:42:48 +00:00
|
|
|
// Li creates a <li> element.
|
2019-03-25 02:46:38 +00:00
|
|
|
func Li(attribs ...hatmill.Attrib) func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return hatmill.ParentElement{
|
2019-03-29 02:18:25 +00:00
|
|
|
VoidElement: hatmill.VoidElement{
|
2019-03-24 21:42:48 +00:00
|
|
|
TagName: "li",
|
2019-03-22 03:31:24 +00:00
|
|
|
Attribs: attribs,
|
|
|
|
},
|
|
|
|
Children: children,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-03-23 06:42:05 +00:00
|
|
|
|
2019-03-24 21:42:48 +00:00
|
|
|
// Span creates a <span> element.
|
2019-03-25 02:46:38 +00:00
|
|
|
func Span(attribs ...hatmill.Attrib) func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return hatmill.ParentElement{
|
2019-03-29 02:18:25 +00:00
|
|
|
VoidElement: hatmill.VoidElement{
|
2019-03-24 21:42:48 +00:00
|
|
|
TagName: "span",
|
2019-03-23 06:42:05 +00:00
|
|
|
Attribs: attribs,
|
|
|
|
},
|
|
|
|
Children: children,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-24 21:42:48 +00:00
|
|
|
// Title creates a <title> element.
|
2019-03-25 02:46:38 +00:00
|
|
|
func Title(attribs ...hatmill.Attrib) func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return hatmill.ParentElement{
|
2019-03-29 02:18:25 +00:00
|
|
|
VoidElement: hatmill.VoidElement{
|
2019-03-24 21:42:48 +00:00
|
|
|
TagName: "title",
|
2019-03-23 06:42:05 +00:00
|
|
|
Attribs: attribs,
|
|
|
|
},
|
|
|
|
Children: children,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-03-23 06:43:48 +00:00
|
|
|
|
2019-03-24 21:42:48 +00:00
|
|
|
// Ul creates a <ul> element.
|
2019-03-25 02:46:38 +00:00
|
|
|
func Ul(attribs ...hatmill.Attrib) func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return func(children ...hatmill.Term) hatmill.ParentElement {
|
|
|
|
return hatmill.ParentElement{
|
2019-03-29 02:18:25 +00:00
|
|
|
VoidElement: hatmill.VoidElement{
|
2019-03-24 21:42:48 +00:00
|
|
|
TagName: "ul",
|
2019-03-23 06:43:48 +00:00
|
|
|
Attribs: attribs,
|
|
|
|
},
|
|
|
|
Children: children,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-03-25 02:32:15 +00:00
|
|
|
|
2019-03-25 02:35:40 +00:00
|
|
|
// Disabled creates a "disabled" attribute
|
2019-03-25 02:32:15 +00:00
|
|
|
func Disabled() hatmill.Attrib {
|
|
|
|
return hatmill.Attrib{
|
2019-03-24 21:42:48 +00:00
|
|
|
Key: "disabled",
|
|
|
|
}
|
|
|
|
}
|
2019-03-25 02:32:15 +00:00
|
|
|
|
2019-03-25 02:35:40 +00:00
|
|
|
// Id creates a "id" attribute
|
2019-03-25 02:32:15 +00:00
|
|
|
func Id(value string) hatmill.Attrib {
|
|
|
|
return hatmill.Attrib{
|
2019-03-24 21:42:48 +00:00
|
|
|
Key: "id",
|
|
|
|
Value: value,
|
|
|
|
}
|
|
|
|
}
|
2019-03-25 02:32:15 +00:00
|
|
|
|
2019-03-25 02:35:40 +00:00
|
|
|
// Src creates a "src" attribute
|
2019-03-25 02:32:15 +00:00
|
|
|
func Src(value string) hatmill.Attrib {
|
|
|
|
return hatmill.Attrib{
|
2019-03-24 21:42:48 +00:00
|
|
|
Key: "src",
|
|
|
|
Value: value,
|
|
|
|
}
|
|
|
|
}
|