Added title element
This commit is contained in:
parent
22fe88873a
commit
2e5426d211
13
elements.go
13
elements.go
@ -101,3 +101,16 @@ func Li(attribs ...Attrib) func(children ...Term) *ParentElement {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Title creates a <title> element.
|
||||
func Title(attribs ...Attrib) func(children ...Term) *ParentElement {
|
||||
return func(children ...Term) *ParentElement {
|
||||
return &ParentElement{
|
||||
EmptyElement: EmptyElement{
|
||||
TagName: "title",
|
||||
Attribs: attribs,
|
||||
},
|
||||
Children: children,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,3 +6,4 @@ img empty
|
||||
span parent
|
||||
ul parent
|
||||
li parent
|
||||
title parent
|
||||
|
Loading…
Reference in New Issue
Block a user