{# A more complex template using gonja #} My blog page

Blogpost

{{ complex.post.Text|safe }}

Comments

{% for comment in complex.comments %}

{{ loop.index }}. Comment ({{ loop.revindex}} comment{% if loop.revindex > 1 %}s{% endif %} left)

From: {{ comment.Author.Name }} ({% if comment.Author.Validated %}validated{% else %}not validated{% endif %})

{% if complex.is_admin(comment.Author) %}

This user is an admin (verify: {{ comment.Author.IsAdmin() }})!

{% else %}

This user is not admin!

{% endif %}

Written {{ comment.Date }}

{{ comment.Text|striptags }}

{% endfor %}