mitsuhiko / minijinja

MiniJinja is a powerful but minimal dependency template engine for Rust compatible with Jinja/Jinja2
https://docs.rs/minijinja/
Apache License 2.0
1.63k stars 95 forks source link

Break/continue support #557

Closed Rocketknight1 closed 2 months ago

Rocketknight1 commented 2 months ago

Hi, Matt from Hugging Face here! We were experimenting with adding break and continue via the loopcontrols extension in Jinja. Is this something that could be added to minijinja as well, or would that be very difficult?

mitsuhiko commented 2 months ago

No, I'm open to adding this. I think I would flag it behind a feature like we do with macros. Not sure if this needs to be something that is controlled on the environment.

Rocketknight1 commented 2 months ago

Wow, that was fast. Thank you!