Поменял местам key value

This commit is contained in:
Федор Подлеснов 2015-12-03 10:38:59 +03:00
parent 7562f54d2c
commit 3f5d4a5e9c
5 changed files with 46 additions and 4 deletions

18
tempalte.html Normal file
View file

@ -0,0 +1,18 @@
<h1>{{ pagename|title }}</h1>
<ul>
{% for author in authors %}
<li {% if loop.first %}class="first"{% endif %}{% if loop.last %}class="last"{% endif %}>
<div class="name">{{ author.name }}</div>
<div class="age">{{ author.age }}</div>
</li>
{% endfor %}
{% for key, value in city %}
<li>
<div class="value">{{ value }}</div>
<div class="key">{{ key }}</div>
</li>
{% endfor %}
</ul>