feat(for): Allow iterating over dictionary key and value

Closes #94
This commit is contained in:
Kyle Fuller
2017-04-19 00:03:47 +01:00
parent a8d680b30e
commit 89256b96f4
5 changed files with 61 additions and 6 deletions

View File

@@ -17,6 +17,14 @@
{% endif %}
```
- `for` block now allows you to iterate over array of tuples or dictionaries.
```html+django
{% for key, value in thing %}
<li>{{ key }}: {{ value }}</li>
{% endfor %}
```
### Bug Fixes
- You can now use literal filter arguments which contain quotes.