🍃 An expressive, performant, and extensible templating language built for Swift.
Updates to Swift 5.2.
Release candidates represent the final shift toward focusing on bug fixes and documentation. Breaking changes will only be accepted for critical issues. We expect a final release of this package shortly after Swift 5.2's release date.
LeafCache is now settable (#155, fixes #154).
app.leaf.cache.isEnabled = false
This patch was authored and released by @tanner0101.
Removes force unwrapping in the LeafEncoder allowing for types to be Optional.
This patch was authored by @namolnad and released by @loganwright.
This patch was authored and released by @gwynne.
Configuration changes:
import Leaf
import Vapor
// beta.1
app.use(LeafProvider())
// beta.2
app.views.use(.leaf)
Rendering changes:
// beta.2
app.get("test-file") { req in
req.view.render(#file, ["foo": "bar"])
}
NIOThreadPool
service being unavailable (#141)Fixed:
Fixed:
#//
tag no longer removes newline after trailing comments. (#130, #127)