0.6.0
Breaking changes
- dropped requirement of declaring innerHTML values in an array
// previous version (no longer compilable in 0.6.0)
#div(attributes: [.class(["dark"])], [
#p(["Macros are beautiful"])
])
// new version
#div(attributes: [.class(["dark"])],
#p("Macros are beautiful")
)
New
- can now escape HTML via
#escapeHTML()
macro or 4String
extension functions (HTML macros automatically escape characters) - writing string interpolation in HTML macros now throws a compiler warning saying it can introduce raw HTML
- dynamic benchmarks
Other
- fixed a case where creating a
StaticString
would not be permitted, even though it should've been - updated
swift-syntax
dependency url (wasapple/swift-syntax
, nowswiftlang/swift-syntax
) - more libraries benchmarked
- updates to README, including
- toned-down verbiage
- benchmarks are now pngs
- how to escape HTML
Full Changelog: 0.5.0...0.6.0