My question is sort of a combination of the unanswered parts of this question and this one. I'm using Meteor and trying to make a table or grid that is populated with dynamic data from MongoDB, but I'm having trouble finding a method that accomplishes everything I want it to. I currently have a grid which uses the {{#each}} tag to get the data from mongo, based on Jim Mack's answer to the question in the first link. Here is a bit of sample code:
<template name="projectList">
{{#each projects}}
{{> projectRow }}
{{/each}}
</template>
<template name='projectRow'>
<div class='row span12'>
<div class="projectRow">
{{#each row }}
{{> projectItem}}
{{/each}}
</div>
</div>
</template>
<template name="projectItem">
<div class="span6 projectItem nameitem"> {{name}}</div>
<div class="span6 projectItem numberitem">{{number}}</div>
</template>
This works great and gets all the data, but as discussed in the second link, the columns must be a fixed width, since dynamic width is not an option according to bootstrap grid documentation. If I use tags, the {{#each}} no longer works, and I can't figure out how to get my data into the table.
Does anyone have a method that could work for getting dynamic data from mongoDB to populate a table in Meteor OR some other way to achieve both dynamic-width columns and dynamic MongoDB data?