| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 0.3.0.tar.gz | 2019-03-26 | 69.7 kB | |
| 0.3.0.zip | 2019-03-26 | 92.7 kB | |
| README.md | 2019-03-26 | 1.1 kB | |
| Totals: 3 Items | 163.6 kB | 0 | |
What's new?
- Swift 5 support (#51).
- The element and attribute APIs have been completely revamped to use
statics (#39). - The underlying
NodeAPI has been improved!- Arrays of nodes are now contained within a
.fragmentcase, and.elementhas been updated to take a single child node, which may be a fragment (#23). Nodeis nowExpressibleByArrayLiteral(#23).Nodeis nowEquatableandHashable(#48).Nodenow supports Swift 5ExpressibleByStringInterpolation(#48).
- Arrays of nodes are now contained within a
- The
mailtoAPI has been improved to takesubjectand other parameters (#41). - There's a new
templatetag helper (#43).
The cumulative changes make for a big difference in API, but we think it's worth it!
:::diff
-let link: Node = a([href("/")], ["Hello, ", .text(name), "!"])
+let link: Node = .a(attributes: [.href("/")], "Hello, \(name)!")
What's fixed?
- Both
summary/detailsandfieldset/legendhave been fixed to compile correctly (#42). - The
HtmlSnapshotTestingmodule has been fixed on Carthage by disabling bit-code (#49).