title: Index of an array element in Mustache.js
body: <p>This is what I'd like to do in Mustache.js but not seeing how with the documentation.</p>
  
  <pre><code>var view = {items:['Mercury','Venus','Earth','Mars']};
  var template = "&lt;ul&gt; {{#items}}&lt;li&gt;{{i}} - {{.}}&lt;/li&gt;{{/items}} &lt;/ul&gt;";
  var html = Mustache.to_html(template,view);
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li&gt;0 - Mercury&lt;/li&gt;
    &lt;li&gt;1 - Venus&lt;/li&gt;
    &lt;li&gt;2 - Earth&lt;/li&gt;
    &lt;li&gt;3 - Mars&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>