Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

0.4.0

Choose a tag to compare

@djc djc released this 06 Sep 18:38
· 1161 commits to main since this release

Roughly six months after announcing the first public version of Askama, 0.4.0 feels like a large update.

There are some breaking changes compared to the 0.3.0 series:

  • &, < and > are replaced with HTML character entities by default (see #23)
  • Run-time errors are now returned via custom Error and Result types

Other noteworthy new features include:

  • Optional integrations for Rocket and Iron (see examples for Rocket and Iron)
  • Support for defining variables, user-defined filters, includes and macros
  • Inheriting templates no longer have to use _parent to refer to fields from the parent context
  • Template implementations now automatically implement Display
  • Better robustness and more explicit error handling through panics at compile time
  • Much faster compilation in some edge cases with nested binary operators

Special thanks to those who have contributed to this release, in particular @anowell and @defyrlt.

Please post your feedback or questions as an issue or join the chat!