I found a link to have a 'switch' tag in Django templates, but I was wondering if this can be somehow achieved without it. Using only the stuff which comes with Django? Basically is there other way then using multiple 'if' or 'ifequal' statements?
Thanks in advance for any tips/suggestions.
As of Django 1.4, there is {% elif %}
:
{% if a %}
thing
{% elif b %}
other thing
{% elif c %}
another thing
{% endif %}