This repository was archived by the owner on Mar 11, 2025. It is now read-only.
0.4.0
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
ErrorandResulttypes
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
_parentto refer to fields from the parent context Templateimplementations now automatically implementDisplay- 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!