djc / askama

Type-safe, compiled Jinja-like templates for Rust
Apache License 2.0
3.35k stars 215 forks source link

Add support for filter chaining in filter blocks #984

Closed GuillaumeGomez closed 5 months ago

GuillaumeGomez commented 6 months ago

Follow-up of https://github.com/djc/askama/pull/959.

It allows to chain filters on filter blocks, making the feature much more useful. :)

With this, the feature will be complete.

GuillaumeGomez commented 6 months ago

Applied suggestions.

GuillaumeGomez commented 6 months ago

Created a new Filter type in its own commit. It required to update a lot of tests, forcing me to remove the use Expr::* because of name conflict, it's mostly because of cases like this that I'm not a big fan matching on just variant names. :wink:

GuillaumeGomez commented 6 months ago

Fixed the commit mess. :)

GuillaumeGomez commented 6 months ago

Renamed and added documentation.