Would be great to be able to chain conditionals more succinctly. It's currently verbose, error prone, and a maintenance headache, since conditions have to be repeated:
{% if X %}
...
{% endif %}{% if !X && Y %}
...
{% endif %}{% if !X && !Y && Z %}
...
{% endif %}{% if !X && !Y && !Z %}
...
{% endif %}
The same could be written more succinctly something like this:
{% if X %}
...
{% elsif Y %}
...
{% elsif Z %}
...
{% else %}
...
{% endif %}
Would be great to be able to chain conditionals more succinctly. It's currently verbose, error prone, and a maintenance headache, since conditions have to be repeated:
The same could be written more succinctly something like this: