djc / askama

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

Better (post-parser) errors #1058

Closed GuillaumeGomez closed 1 month ago

GuillaumeGomez commented 1 month ago

Fixes https://github.com/djc/askama/issues/926.

This is very big because a lot of small changes everywhere. However, the result is really great (at least for me :smiley_cat: ). Take a look at the updated ui tests to see the impact of this PR.

GuillaumeGomez commented 1 month ago

Finally reworked the whole git history and made the suggested changes.

GuillaumeGomez commented 1 month ago

I'll try to update this PR in the next days since #1061 got merged. Still didn't applied your comments too, just came back from a hackfest.