The template file I am using contains the following code.
foo is '{{ foo }}'
item.url is '{{ item.url }}'
{% if item.url == foo %}
equal
{% endif %}
I was expecting this code to output foo is 'test' item.url is 'test' equal, but instead it outputs foo is 'test' item.url is 'test'; the equal part doesn't appear.
The following code works.
{% if 'test' == 'test' %}
This code doesn't work.
{% if item.url == 'test' %}
Why doesn't the code I am using work?