Greetings! I'm currently facing an issue with creating multiple table rows from an array using a template helper. Right now, all the images in my array are being displayed in the same row of the table. My goal is to have each image appear in its own row within the table. Any suggestions on how I can achieve this?
<template name="stop">
<tr>
{{#each thumb}}
<td class="image"><img src="{{this}}"></td>{{/each}}
<td>
</td>
</tr>
</template>
Below is my template helper code.
Template.stop.helpers({
'thumb': function(data){
return Chartdata.findOne().data;
},
'snippet': function(){
return x[1]
}
});
The 'Chartdata.findOne().data;' holds an array of image urls.