title: jinja2.exceptions.TemplateSyntaxError in jinja ( for loop isnt ended even though i wrote {% endfor %} in the code)
body: <p>this error is always coming even though i closed the for loop :</p>
  
  <pre><code>jinja2.exceptions.TemplateSyntaxError: Unexpected end of template. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.
  </code></pre>
  
  <p>my python version is python3.6, flask version is 1.0.6 and jinja 2 version is 2.10</p>
  
  <p>please see these code and help me</p>
  
  <p>flask code:</p>
  
  <pre><code>from flask import *
  import pandas
  app = Flask(__name__, template_folder='templates')
  @app.route('/')
  def index():
      test = pandas.read_csv('test.csv')
      test0 = test['PassengerId']
      test1 = test['Name']
      print(test0, test1)
      return render_template('index.html', tables={'test':test0,'test1':test1})
  
  if __name__ == '__main__':
      app.debug = True
      app.run()
  </code></pre>
  
  <p>templates/index.html :</p>
  
  <pre><code>{% block content %}
  &lt;head&gt;
      &lt;title&gt;pandas app&lt;/title&gt;
  &lt;/head&gt;
  {% block body %}
      {% for test0,test1 in tables %}
          &lt;TABLE&gt;
          &lt;thead&gt;
          &lt;tr&gt;
           &lt;th&gt;PassengerId&lt;/th&gt;
           &lt;th&gt;Name&lt;/th&gt; 
          &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
  
            &lt;tr&gt;
            &lt;td&gt;{{ test0 }}&lt;/td&gt;
            &lt;td&gt;{{ test1 }}&lt;/td&gt;
            &lt;/tr&gt;
            &lt;/tbody&gt;
            &lt;/TABLE&gt;
  
      {% endfor %}
  {% endblock %}
  {% endblock %}
  </code></pre>
  
  <p>please help me ,any help is appreciated</p>
  
  <p>thanks</p>