Legend!
D
duncanelliot
@duncanelliot
0
Reputation
2
Posts
642
Profile views
0
Followers
0
Following
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