UNPKG

hbs-helper

Version:

handlebar template engine's helper

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