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)
comment:1 by , 16 years ago
comment:3 by , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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 , 11 years ago
Easy pickings: | unset |
---|---|
Resolution: | wontfix |
Severity: | → Normal |
Status: | closed → new |
Type: | → Uncategorized |
UI/UX: | unset |
comment:6 by , 11 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I don't think this is necessary now that the equality operator is supported, i.e. {% if a == b %} ... {% elif a == c %}
Replying to rokj:
{% for name in names %} ... {% endfor %}