{# A more complex template using gonja (fully django-compatible template) #} My blog page

Blogpost

{{ complex.post.Text|safe }}

Comments

{% for comment in complex.comments %}

{{ loop.index }}. Comment ({{ loop.revindex}} comment{{ loop.revindex|pluralize("s") }} left)

From: {{ comment.Author.Name }} ({{ comment.Author.Validated|yesno("validated,not validated,unknown validation status") }})

{% 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 %}