We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
While this syntax is currently supported:
for element in array | myfilter
This one is unfortunately not:
for key, value in object | myfilter
The text was updated successfully, but these errors were encountered:
I also think this is a problem. But, I have a different view. It would be better to introduce such a syntax element (as is possible in Jinja2):
{% for k, v in my_map if k | length >= 10 and v is not null %}
That is, supporting the ternary operator in for would solve a lot of problems.
for
Sorry, something went wrong.
I'm not sure about ternaries in for. Tera has continue/break so I feel like it wouldn't be needed, you can just have a if in your loop
continue
break
No branches or pull requests
While this syntax is currently supported:
This one is unfortunately not:
The text was updated successfully, but these errors were encountered: