askama v0.7.2 Release Notes

Release Date: 2018-10-08 // over 5 years ago
  • ๐Ÿš€ After two months, I'm happy to announce the 0.7.2 release of Askama, the type-safe, compiled Jinja-like template engine for Rust! Despite the small version number increase (because this release should be fully backwards compatible with earlier 0.7 releases), there's a good amount of feature in this release. Happily, I can say that for the first time, all of the improvements in this release are due to @botika spending a lot of time on improving Askama over the past months, for which I owe them many thanks! Let's dive in:

    • ๐Ÿ“š Custom syntax support: in response to a bug reporter who wanted to generate LaTeX with Askama (#121), it is now possible to use custom block delimiters in your Askama templates. Read the documentation for more information on how to define and use custom syntaxes. Thanks to @botika for spending a lot of time on getting this just right.
    • โž• Added a number of built-in filters: abs, capitalize, center and wordcount
    • ๐Ÿ›  Fixed support for range-based for-loops (#117) by specializing the code generator
    • ๐Ÿ›  Fixed operator precedence issues with loop attributes (like index)
    • ๐Ÿ›  Fixed a number of edge cases in macro scope resolution