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, 4 insertions(+), 0 deletions(-)
changed files
M html/attributes.go → html/attributes.go
@@ -133,6 +133,10 @@ func DataAttr(name, v string) g.Node { return Data(name, v) } +func SlotAttr(v string) g.Node { + return g.Attr("slot", v) +} + func For(v string) g.Node { return g.Attr("for", v) }