title: Python Jinja error while comparing string
body: <p>I'm getting a problem while comparing two string in python:</p>
  
  <p><strong>this is working:</strong></p>
  
  <pre><code>{% for publication in publications %}
          {{ publications[publication].pub_type }}
  {% endfor %}
  </code></pre>
  
  <p>but not this:</p>
  
  <pre><code>{% for publication in publications %}
          {% if publications[publication].pub_type equals "conference_paper" %} 
               class="active" 
           {% endif %}
  {% endfor %}
  </code></pre>
  
  <p>In the above code, I'm just testing something, but its not working</p>
  
  <p>I'm getting this error:</p>
  
  <pre><code>jinja2.exceptions.TemplateSyntaxError
  TemplateSyntaxError: expected token 'end of statement block', got 'equals'
  </code></pre>