UNPKG

hbs-helper

Version:

handlebar template engine's helper

10 lines (9 loc) 223 B
module.exports= function(hbs){ hbs.registerHelper('ifThree', function(conditional, options) { if((conditional % 3) == 0) { return options.fn(this); } else { return options.inverse(this); } }); }