title: jinja2.exceptions.TemplateSyntaxError: expected token 'end of print statement', got 'posted'
body: <p>I'm new to programming and recently a friend of mine gave me a project to work on in order to get myself familiar with the programming environment and language (python in this particular example).
  <a href="https://www.youtube.com/watch?v=QnDWIZuWYW0" rel="nofollow noreferrer">https://www.youtube.com/watch?v=QnDWIZuWYW0</a> I used this video as a beginners tutorial to help me understand how i'm supposed to proceed with my personal project. the code i wrote is exactly how it is written in the video, and i get an error.</p>
  <pre><code>from flask import Flask, render_template
  app = Flask(__name__)
  
  posts = [
      {
          'author': 'Alon Salzmann',
          'title': 'First Post',
          'content': 'First post content',
          'date posted': 'September 5, 2018'
      },
      {
          'author': 'Alon Salzmann',
          'title': 'Second Post',
          'content': 'Second post content',
          'date posted': 'September 6, 2018'
      }
  ]
  
  @app.route(&quot;/&quot;)
  def homepage():
      return render_template('Home.html', posts=posts)
  
  @app.route(&quot;/about&quot;)
  def about():
      return render_template('About.html')
  
  if __name__ == '__main__':
      app.run(debug=True)
  </code></pre>
  <p>The code above is the python code I wrote, and the code below is the html code I wrote that involves python:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      {% for post in posts %}
      &lt;h1&gt;{{ post.title }}&lt;/h1&gt;
      &lt;p&gt;By {{ post.author }} on {{ post.date posted }}&lt;/p&gt;
      &lt;p&gt;{{ post.content }}&lt;/p&gt;
      {% endfor %}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>after running the program on both cmd and powershell (not simultaneously of course), and going to my localhost address, i got the error that appears in the title:</p>
  <pre><code>jinja2.exceptions.TemplateSyntaxError: expected token 'end of print statement', got 'posted'
  </code></pre>
  <p>I would love to get a good explanation as to why this has been happeninig, and how to fix this. Please remember I am a beginner and maybe need to be explained a few basic concepts at first :).</p>
  <p>P.S. The guy's code in the video worked so I would love to understand where I went wrong.</p>