title: Jinja2 Using images in HTML
body: <p>I wasted a lot of time to find out what is wrong. I need your help now.
  I want to render template with image from my filesystem. But it is not working.
  Path - string that contains file name</p>
  
  <pre><code>@app.route('/', methods=['GET'])
  def main():
  
      return render_template('main.html',image = path)
  </code></pre>
  
  
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
       &lt;title&gt;test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h2&gt;&lt;/h2&gt;
  &lt;form method="post" enctype="multipart/form-data" action="/uploader"&gt;
      &lt;input type="file" name="file"&gt;
      &lt;button type="submit"&gt;Upload&lt;/button&gt;
  &lt;/form&gt;
  &lt;img src={{ url_for('static', filename = image) }} &gt;//i can't figure how to change this to use {{image}}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>