title: Underscore template display array of objects via _.each
body: <p>I'm having trouble printing out a simple for each comment loop with _.template.</p>
  
  <pre><code>&lt;% _.each([comments], function(i) { %&gt;  &lt;p&gt;&lt;%= i %&gt;&lt;/p&gt; &lt;% }); %&gt;
  </code></pre>
  
  <p>prints [object Object]</p>
  
  <pre><code>&lt;% _.each([comments], function(i) { %&gt;  &lt;p&gt;&lt;%= JSON.stringify(i) %&gt;&lt;/p&gt; &lt;% }); %&gt;
  </code></pre>
  
  <p>prints: </p>
  
  <pre><code>[{"comment":"Mauris quis leo at diam molestie sagittis.","id":263,"observation_id":25}]
  </code></pre>
  
  <p>What I've tried so far:</p>
  
  <pre><code>&lt;% _.each([comments], function(i) { %&gt;  &lt;p&gt;&lt;%= i.comment %&gt;&lt;/p&gt; &lt;% }); %&gt;
  </code></pre>
  
  <p>blank</p>
  
  <pre><code>&lt;% _.each([comments], function(i) { %&gt;  &lt;p&gt;&lt;%= i.get('comment') %&gt;&lt;/p&gt; &lt;% }); %&gt;
  </code></pre>
  
  <p>Uncaught TypeError: Object [object Array] has no method 'get'</p>
  
  <pre><code>&lt;% _.each([comments], function(i) { %&gt;  &lt;p&gt;&lt;%= comment %&gt;&lt;/p&gt; &lt;% }); %&gt;
  </code></pre>
  
  <p>blank</p>