Can anyone help me convert the pug code below into handlebars code?
ul
for product in products
li #{product.product}
li #{product.price}
I have found some existing code but I need to populate two points per iteration. Any ideas on how to do that would be appreciated.
handlebars.registerHelper('list', function(n, block) {
var accum = '';
for(n in block)
accum1 += block.fn(n);
return accum;
});
Thank you.