Skip to content

0.10.0

Compare
Choose a tag to compare
@djc djc released this 30 Jun 12:34

After 5 months of development, I'm happy to announce the availability of version 0.10 of Askama, the type-safe, compiled Jinja-like template engine for Rust. The major (breaking) change in this release is that the framework integrations, which were previously included in the main crate behind feature flags, have now been moved into 4 separate crates; a new integration with the warp web framework is also shipped in a separate askama_warp crate. If you use an integration, you should now only depend on the integration crate, which re-exports content from the askama crate as well as any integration symbols. Finally, @cetra3 has created a book which should make navigating the documentation much better.

Upgrade notes:

  • Move integration code into askama_actix, askama_gotham, askama_iron and askama_rocket crates
  • Update Gotham integration to version 0.4

Other changes:

  • Move documentation into a new book (#332, thanks to @Cetra)
  • Add integration for the warp web framework, as an askama_warp crate (#290, thanks to @aeons)
  • Allow blocks to be nested inside if, for and match blocks (#336)
  • Support for function calls (#304, thanks to @Senzaki)
  • Add urlencode filter (#305, thanks to @jxs)
  • Disable default features in many dependencies to limit the size of the transitive dependency set
  • Fix panic in truncate filter (#296, thanks to @danloh)

Thanks to @paolobarbolini, @brunobell, @cipriancraciun, @kyrias, @jeromegn, @NilsIrl and @DusterTheFirst for additional improvements.