If I understood your question right, you are looking for N number of tabs to show N number of tab-contents when you have N number of rows in your resultset.
If yes, then you will need to loop the tabs and the tab-contents through an "each" iteration like below
<div class="tabbable">
<ul class="nav nav-tabs">
{{#each ID}}
<li><a href="#tab"{{ID}} data-toggle="tab">Tab {{ID}}</a></li>
{{/each}}
etc
</ul>
And wherever you have the tab-contents, you do the following
<div class="tab-content">
{{#each ID}}
<div class="tab-pane" id="tab"{{ID}}>
FieldName1: FieldValue1
FieldName2: FieldValue2
</div>
{{/each}}
</div>
All these assuming that the ID contains some autonumber such as 1, 2, 3 ... as the number of records increase.