Sha256: 24398452ec629bc63a7fd5be2f0eefe1771b95d772cd5ff3f35173abdcfec7fa

Contents?: true

Size: 238 Bytes

Versions: 4

Compression:

Stored size: 238 Bytes

Contents

module.exports.register = function (handlebars) {
	handlebars.registerHelper('for', function(from, to, incr, block) {
	    var accum = '';
	    for(var i = from; i < to; i += incr)
	        accum += block.fn(i);
	    return accum;
	});
};

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_modular_admin-0.2.4 app/assets/javascripts/rails_modular_admin/_common/_helpers/for-helper.js
rails_modular_admin-0.2.3 app/assets/javascripts/rails_modular_admin/_common/_helpers/for-helper.js
rails_modular_admin-0.2.2 app/assets/javascripts/rails_modular_admin/_common/_helpers/for-helper.js
rails_modular_admin-0.2.0 app/assets/javascripts/rails_modular_admin/_common/_helpers/for-helper.js