Dojo dtl (Django Template Language) is being used to render a widget by passing an array with multiple objects. The iteration over the objects and their subarrays is functioning properly, but there seems to be an issue with applying an 'if' condition:
<div>
{% for layer in layers %}
<dl>
<dt>{{ layer.name }}</dt>
<dd>
{% for symbol in layer.symbols %}
<div>
{% if symbol.type == "asdfjkl" %}
This should never happen!
{% endif %}
</div>
{% endfor %}
</dd>
</dl>
{% endfor %}
</div>
Despite symbol.type never equaling 'asdfjkl', the message inside the blocks is still getting printed.
It's known that Dojo no longer supports this method, but without a template engine from them, it remains the primary option available.