Skip to content

0.7.2

Compare
Choose a tag to compare
@djc djc released this 08 Oct 09:48

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