Цыкл с ключом
This commit is contained in:
parent
a49f10601b
commit
7562f54d2c
3 changed files with 14 additions and 1 deletions
|
|
@ -7,4 +7,12 @@
|
|||
<div class="age">{{ author.age }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% for key, value in city %}
|
||||
<li>
|
||||
<div class="name">{{ value }}</div>
|
||||
<div class="age">{{ key }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue