title: How to loop through dictionary in jinja template
body: <p>I have a dictionary that looks something like this:</p>
  
  <pre><code>{
   'Team Starwars': {'Luke Skywalker': {('Jedi', 100)}}
   'Team helloworld': {'Beginner': {('newbie', 100)}}
  }
  </code></pre>
  
  <p>And now I want to iterate through the dictionary with jinja in a template.
  I have tried somethings but can't iterate through it correctly.
  The code I have now looks something like this:</p>
  
  <pre><code>  {% for team_name in team_resource %}
            {% for team, name in team_resource.items %}
                    {% for role, allocation in subrole %}
                      {% if forloop.counter0 != 0 %}&lt;br&gt;{% endif %}
                      {{role}} {{allocation}} %
             {% endfor %}
  
    {% endfor %}
  </code></pre>
  
  <p>team_resource is the dictionary that I pass to the template, and in the first loop I can access the first part of the dictionary and print out like Team Starwars and Team helloworld', but can't access the rest of the dict.</p>
  
  <p>How should I do this?</p>