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

Generate better errors for top level nodes #42

Closed GuillaumeGomez closed 5 days ago

Kijewski commented 5 days ago

Very useful change!

I de-duplicated the top-level check, and getting the FileInfo of a Node a bit.

GuillaumeGomez commented 5 days ago

I can't approve it says github but I like the changes a lot, thanks to both of you!