evanmiller/erlydtl — pull request #35 by psyeugenic (2012-07-20 13:23:44+00:00)
Title: Support {% elif %} clause in if template tag syntax

I have implemented support for `{% elif Expr %}` clause like the if template tag in Django 1.4.

Example:

{% if b.status == "done" %}
{{b.status}}
{% elif b.status == "aborted" %}
{{b.status}}
{% elif b.status == "timeout" %}
{{b.status}}
{% else %}
{{b.status}}
{% endif %}

Unit tests for elif clauses are also included in the branch.

If this is something you want, merge it as-is or give a shout out to me if something needs polishing.

Regards,
Björn-Egil