title: Mustache templating with an array of objects
body: <p>I am trying to template the following array of objects:</p>
  
  <pre><code>var arr = [{name:"Ryan Pays", url:"http://www.ryanpays.com"}, {name:"foo", url:"http://www.google.com"}];
  </code></pre>
  
  <p>I convert that array to an object like so:</p>
  
  <pre><code>arr = $.extend({}, arr);
  </code></pre>
  
  <p>Which gives me the following object:</p>
  
  <pre><code>{
  0:{name:"Ryan Pays", url:"http://www.ryanpays.com"},
  1:{name:"foo", url:"http://www.google.com"}
  }
  </code></pre>
  
  <p>Using Mustache i want to enumerate over that object with the following template:</p>
  
  <pre><code>var template = "&lt;h4&gt;Your friends' choices&lt;/h4&gt;" +
                 "&lt;ul&gt;" +
                 "&lt;li&gt;" +
                 "&lt;p&gt;&lt;strong&gt;{{name}}&lt;/strong&gt; likes &lt;a href='{{url}}'&gt;this&lt;/a&gt;&lt;/p&gt;" +
                 "&lt;/li&gt;" +
                 "&lt;/ul&gt;";
  var html = Mustache.to_html(template, displayData);
  $('.choices').html(html);
  </code></pre>
  
  <p>I don't seem to be able to do that.  I can get the first result like to print like so:</p>
  
  <pre><code>var html = Mustache.to_html(template, displayData[0]);
  </code></pre>
  
  <p>And so on but not both.</p>
  
  <p>Link to fiddle of this issue:</p>
  
  <p><a href="http://jsfiddle.net/AtJDa/" rel="noreferrer">http://jsfiddle.net/AtJDa/</a></p>