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
I have a yaml file with a hundred of entries.
I want to iterate these entries in the order.
It was not clear how to get the root element of data.
Then I found this line of code
jinja2-cli/jinja2cli/cli.py
Line 274 in 7035125
And now I can do that:
{% for k, v in get_context().items() %} {# do whatever with key #} {# do whatever with value #} {% endfor %}
to iterate the entries.
and that:
{{get_context()|length}} entries
To get the number of entries.
which is great :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a yaml file with a hundred of entries.
I want to iterate these entries in the order.
It was not clear how to get the root element of data.
Then I found this line of code
jinja2-cli/jinja2cli/cli.py
Line 274 in 7035125
And now I can do that:
to iterate the entries.
and that:
To get the number of entries.
which is great :)
The text was updated successfully, but these errors were encountered: