~tieong/notjinja2

8100e558d944953cb2701e19ffb7fe7a227e0923 — Thomas Ieong 1 year, 7 months ago 62fc87a
Added dict iter template
1 files changed, 9 insertions(+), 0 deletions(-)

A templates/acces_dict.html
A templates/acces_dict.html => templates/acces_dict.html +9 -0
@@ 0,0 1,9 @@
{% if user.is_logged_in %}
    <p>Welcome, {{ user.name }}!</p>
{% endif %}
<p>Products:</p>
<ul>
    {% for k, v in product_list.items() %}
    <li>{{ k }}: {{ v.name }}</li>
    {% endfor %}
</ul>