Merge pull request #271 from lektor/lektor/lektor-643
Changed use of iteritems to items in data bag docs
This commit is contained in:
commit
45429cfa14
|
@ -26,7 +26,7 @@ And the template could access it like this:
|
||||||
|
|
||||||
```html+jinja
|
```html+jinja
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
{% for path, label in bag('main-nav').iteritems() %}
|
{% for path, label in bag('main-nav').items() %}
|
||||||
<li{% if this.is_child_of(path) %} class="active"{% endif
|
<li{% if this.is_child_of(path) %} class="active"{% endif
|
||||||
%}><a href="{{ path|url }}">{{ label }}</a>
|
%}><a href="{{ path|url }}">{{ label }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue