djc / askama

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

Re-add `{% set %}` as alias for `{% let %}` #1051

Closed Kijewski closed 2 months ago

Kijewski commented 2 months ago

Commit 615fb82 introduced a regression. {% set %} and {% let %} should be interchangeable, but only the latter syntax works.

This PR fixes the problem, and adds a regression test.

djc commented 2 months ago

Thanks!