title: I'm trying to create an url_for in an html <img src=...> tag where the filename for the image is stored in a variable. How would I do this?
body: <p>I am trying to create a page for users that will display their profile pic and I've retrieved the picture filename from a database and stored that filename as a variable called "profilePic".</p>
  
  <p>I've passed profilePic to the html page as a variable, but how would I create the <code>&lt;img&gt;</code> tag using Jinja2's {{ url_for }}.  I know how to do it if I just type in the picname, but in this case the pic's name changes from user to user.</p>
  
  <p>I tried...</p>
  
  <pre><code>&lt;img src="{{ url_for('static', filename='img/user/{{ profilePic }}' }}&gt;
  </code></pre>
  
  <p>which does not work because it appears you cannot nest {{ }} items in Jinja2.</p>
  
  <p>How would I go about doing this?</p>