title: check variable type inside Jinja2 in Flask
body: <p>The template file i created contains this:</p>
  
  <pre><code>{% if type({'a':1,'b':2}) is dict %}
      print "Oh Yes!!"
  {% else %}
      print "Oh No!!!"
  {% endif %}
  </code></pre>
  
  <hr>
  
  <p>Then Jinja2 responds by saying:</p>
  
  <pre><code>TemplateAssertionError: no test named 'dict'
  </code></pre>
  
  <hr>
  
  <p>I am completely new to Jinja2 and Flask</p>