diff --git a/src/output-website/template.js b/src/output-website/template.js index 67abf20..81faf60 100644 --- a/src/output-website/template.js +++ b/src/output-website/template.js @@ -51,6 +51,15 @@ exports.create = function(options) { return ret; }); + // utility helper + // execute the child block N times + handlebars.registerHelper('times', function(n, block) { + var accum = ''; + for(var i = 0; i < n; ++i) + accum += block.fn(i); + return accum; + }); + // utility helper // render the correct download path based on user options handlebars.registerHelper('download', function(file) {