title: How can I dynamically render images from my images folder using Jinja and Flask?
body: <p>I am using Flask to learn Python and to create a toy application that I've wanted to make for awhile. I'm having problems with a particular feature which is the standard file uploading. What I want to do is to try to dynamically render an image from my images folder based on a particular model but I seem to be having a problem trying to string interpolate.</p>
  
  <p>Here is my view code:</p>
  
  <pre><code>&lt;h1&gt;List of Employees&lt;/h1&gt;
  
  {% if employees %}
      {% for employee in employees: %}
        &lt;p&gt;{{ employee.name }}&lt;/p&gt;
        &lt;p&gt;{{ employee.title }}&lt;/p&gt;
        &lt;p&gt;{{ employee.email }}&lt;/p&gt;
        &lt;p&gt;{{ employee.department }}&lt;/p&gt;
  
        # How do I use Jinja and python to interpolate this so I can 
        # grab the correct image
        &lt;img src="static/images/" + {{employee.profile_image }} alt={{ employee.name }} width="120" height="90"&gt;{{ employee.profile_image }}&lt;/img&gt;
      {% endfor %}
    {% endif %}
  </code></pre>
  
  <p>It should be very straightforward. I have been spoiled by ruby and rails.... Help would be appreciated. Thanks.</p>