Add web component elements and slot attribute (#235) The slot attribute is a standard attribute for use with web components: https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots
1 file changed, 8 insertions(+), 0 deletions(-)
changed files
M html/elements.go → html/elements.go
@@ -264,6 +264,10 @@ func Select(children ...g.Node) g.Node { return g.El("select", children...) } +func SlotEl(children ...g.Node) g.Node { + return g.El("slot", children...) +} + func Source(children ...g.Node) g.Node { return g.El("source", children...) }@@ -294,6 +298,10 @@ } func Td(children ...g.Node) g.Node { return g.El("td", children...) +} + +func Template(children ...g.Node) g.Node { + return g.El("template", children...) } func Textarea(children ...g.Node) g.Node {