ツイートを表示する小さなプラグインを作成しました。以下は、ツイートをループして表示するコードです。
<script id="tweets-template" type="text/x-handlebars-template" >
{{#each this}}
<li>
<p>{{tweet}}</p>
<span id="author">{{author}}<span/>
</li>
{{/each}}
</script>
しかし、私がやりたいのは、ツイートの数を 5 または 10 に制限することです。しかし、ループは利用可能なすべてのツイートをリストしています。for ループのようにツイートを制限するにはどうすればよいですか。お気に入り
for(i=0;i<5;i++){display the tweets}