Changed use of iteritems to items in data bag docs
This commit is contained in:
parent
4ee152fef0
commit
a640c1954a
|
@ -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