Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break/continue support #557

Closed
Rocketknight1 opened this issue Aug 14, 2024 · 2 comments · Fixed by #558
Closed

Break/continue support #557

Rocketknight1 opened this issue Aug 14, 2024 · 2 comments · Fixed by #558

Comments

@Rocketknight1
Copy link

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
Copy link
Owner

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
Copy link
Author

Wow, that was fast. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants