Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

jinja2 iterate dict

{% for key, value in dict_item.items() %}
  <h1>Key: {{key}}</h1>
  <h2>Value: {{value}}</h2>
{% endfor %}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #dict
ADD COMMENT
Topic
Name
6+3 =