What's Changed
- New Tags Span and Button by @micheltlutz in #6
Full Changelog: 1.2.1...1.2.2
Usage
let document = html {
Button(attributes: [Attribute(key: "class", value: "button-class")], children: [
Span(attributes: [Attribute(key: "class", value: "icon-bar")])
])
}
Output
<html><button class="button-class" type="button"><span class="icon-bar"></span></button></html>