Askama 0.6.0: type-safe, compiled Jinja-like templates


#1

I finally have a new release of Askama today, numbered 0.6.0:

The biggest feature in this release is the support for match blocks, making it possible to do pattern matching in templates. An example is provided in the documentation.

  • Implement basic match functionality (thanks to @anowell)
  • Add support for importing template files with macros (fixes #51, thanks to @larros)
  • Fixed implementation of Rocket Responder which was broken in the 0.5.0 release
  • Infer Content-Type from the file extension for Iron integration (thanks to @hajifkd)
  • Add support for array literals (fixes #59)
  • Add support for tuple indexing (thanks to @larros)
  • Numerous bug fixes

… and of course there was a still a bug there, and I’m now putting out a quick 0.6.1 to make sure this works properly on nightly. Many thanks to @dtolnay for his work on syn, and taking the time to fix Askama for this use case.

Thanks to everyone who has contributed to Askama! Feedback is what keeps me motivated to work on Askama, so let me know if you find bugs, see any shortcomings that prevent you from using it, or anything else.


#2

I’ve had a number of good bug reports since announcing these releases, which have resulted in more releases. Between 0.6.1 and 0.6.4, I’ve made the following changes:

  • Added support for unary operators ! and - (#83)
  • Fixed problems with using nested filter (or macro) calls in expressions (#78)
  • Add documentation and tests for comments, after an issue with whitespace surrounding comments was found (#79)