title: limit results of each in handlebars.js
body: <p>I have written a small plugin that displays tweets. following is the code that loops and displays the tweets.</p>
  
  <pre><code>    &lt;script id="tweets-template" type="text/x-handlebars-template" &gt;
          {{#each this}}
          &lt;li&gt;
          &lt;p&gt;{{tweet}}&lt;/p&gt;
              &lt;span id="author"&gt;{{author}}&lt;span/&gt;
          &lt;/li&gt;
          {{/each}}
      &lt;/script&gt;
  </code></pre>
  
  <p>But what I want to do is limit the number of tweets to 5 or 10. But the loop is listing all the available tweets. How do I limit the tweets like in for loop. like</p>
  
  <pre><code>    for(i=0;i&lt;5;i++){display the tweets}
  </code></pre>