rinja-rs / rinja

A template rendering engine based on Jinja, generating type-safe Rust code at compile time.
https://rinja.readthedocs.io
Apache License 2.0
28 stars 4 forks source link

`Level` API is error-prone #30

Open GuillaumeGomez opened 2 weeks ago

GuillaumeGomez commented 2 weeks ago

In many cases, we're supposed to call .leave() on it, which is definitely not great. Having it done with a closure which would handle the leave part automatically would be much better.