Merge pull request #271 from lektor/lektor/lektor-643

Changed use of iteritems to items in data bag docs
This commit is contained in:
Joseph Nix 2019-04-02 15:30:57 -05:00 committed by GitHub
commit 45429cfa14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ And the template could access it like this:
```html+jinja
<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
%}><a href="{{ path|url }}">{{ label }}</a>
</li>