title: Elixir Phoenix template get image url from array
body: <p>I have an array of objects like so</p>
  
  
  
  <pre class="lang-rb prettyprint-override"><code>[%{id:1, url:'image.jpg'}, %{id:2, url:'image2.jpg'}]
  </code></pre>
  
  <p>My phoenix template looks like so</p>
  
  <pre class="lang-rb prettyprint-override"><code>&lt;%= for item &lt;- array() do %&gt;
    &lt;div class="col-lg-4 col-sm-6"&gt;
      &lt;img class="img-fluid" src="&lt;%= static_path(@conn, item.url ) %&gt;" alt=""&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Given that I'm already interpolating and pointing to my static path how do I interpolate twice or rather point to the image url after <code>@conn</code>?</p>
  
  <p>Thank you for your help!</p>