Opened 16 years ago

Closed 11 years ago

#11259 closed Uncategorized (wontfix)

Support for elifequal when ifequal is used.

Reported by: Rok Jaklič Owned by: nobody
Component: Template system Version:
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It would be nice that template syntax would support something like:

{% ifequal name "something1" %}
...
{% elifequal name "something2" %}
...
{% else %}
...
{% endifequal %}

This usage would be common in for loops:
{% for name in name %}
...
{% endfor %}

Regards,

Rok

Change History (6)

in reply to:  description comment:1 by anonymous, 16 years ago

Replying to rokj:

It would be nice that template syntax would support something like:

{% ifequal name "something1" %}
...
{% elifequal name "something2" %}
...
{% else %}
...
{% endifequal %}

This usage would be common in for loops:
{% for name in name %}
...
{% endfor %}

Regards,

Rok

{% for name in names %} ... {% endfor %}

comment:2 by Joey Wilhelm, 16 years ago

Possibly a duplicate or #8296. Or at least, a sub-issue of that one.

comment:3 by Chris Beaven, 16 years ago

Resolution: wontfix
Status: newclosed

If we don't have {% elif %}, we're definitely not getting {% elifequal %} in core.

If this was just a request to be able to support that syntax, then yes this is a dupe of #8296

comment:4 by antiflu@…, 11 years ago

Easy pickings: unset
Resolution: wontfix
Severity: Normal
Status: closednew
Type: Uncategorized
UI/UX: unset

comment:5 by anonymous, 11 years ago

elif is here.. can we now get elifequal? :-)

comment:6 by Tim Graham, 11 years ago

Resolution: wontfix
Status: newclosed

I don't think this is necessary now that the equality operator is supported, i.e. {% if a == b %} ... {% elif a == c %}

Note: See TracTickets for help on using tickets.
Back to Top