Legend!
D
Posts made by duncanelliot
-
Run time argument to #each helper in handlebars
Is it possible to feed a function to the #each helper. I want to do something like this:
{{#each item}} <li>item.name</li> {{/each}} **************** function item(){ let x = [] x.push({name: "joe"}) x.push({name:"david"}) return x }
thanks