title: How to use Mustache.js if the object is in a array?
body: <p>i use Mustache.js succusefully display the html ,here's the code</p>
  
  <pre><code>        var mygame = {
          player:'viking',
          games:[{name:'d1',type:'avg'},{name:'cod7',type:'fps'},{name:'war3',type:'rts'}]
          };
      var template = '{{player}}  is a good guy&lt;br/&gt; &lt;ul&gt;{{#games}}&lt;li&gt;name:{{name}} and type:{{type}} &lt;/li&gt;{{/games}}&lt;/ul&gt;';
      var html = Mustache.to_html(template, mygame);
      var con = document.getElementById('container');
      con.innerHTML = html;
  </code></pre>
  
  <p>but how do i use it when the object is a array ,like </p>
  
  <pre><code>var mygames = [{name:'d1',type:'avg'},{name:'cod7',type:'fps'},{name:'war3',type:'rts'}];
  </code></pre>