0.3.0
What's new?
- Swift 5 support (#51).
- The element and attribute APIs have been completely revamped to use
static
s (#39). - The underlying
Node
API has been improved!- Arrays of nodes are now contained within a
.fragment
case, and.element
has been updated to take a single child node, which may be a fragment (#23). Node
is nowExpressibleByArrayLiteral
(#23).Node
is nowEquatable
andHashable
(#48).Node
now supports Swift 5ExpressibleByStringInterpolation
(#48).
- Arrays of nodes are now contained within a
- The
mailto
API has been improved to takesubject
and other parameters (#41). - There's a new
template
tag helper (#43).
The cumulative changes make for a big difference in API, but we think it's worth it!
-let link: Node = a([href("/")], ["Hello, ", .text(name), "!"])
+let link: Node = .a(attributes: [.href("/")], "Hello, \(name)!")