Meteor: How to print an array from Meteor Helper
I want to generate a tag ul li
from a spinner helper.
Result:
<ul>
<li>aaa</li>
<li>bbb</li>
</ul>
my template code
<template name="Mytempalte">
<ul>
{{#each Name}}
???
{{/each}}
</ul>
</template>
and my helper is returning an array.
Template.Mytempalte.helpers({
Name : function(){
return ["aaa","bbb"];
}
});
+3
source to share