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
116 stars 10 forks source link

Improve Level API a bit #31

Closed GuillaumeGomez closed 3 months ago

GuillaumeGomez commented 3 months ago

Part of https://github.com/rinja-rs/rinja/issues/30.

It already improves the situation a bit. Not sure if the rest is worth improving or not though.

GuillaumeGomez commented 3 months ago

There is still the original Level. I'm still wondering if nest should return a non-Copy type which would contain a mutable reference to the calling Level or something along the line. Really not clear about it...

Something for later on. :)

GuillaumeGomez commented 3 months ago

Fixed CI. :)