I’m new to Handlebars.js and just started using it. Most of the examples are based on iterating over an object. I wanted to know how to use handlebars in basic for loop.
If you like CoffeeScript
Handlebars.registerHelper "times", (n, block) -> (block.fn(i) for i in [0...n]).join("")
and
{{#times 10}} {{this}} {{/times}}