Sha256: 7ff94c65a60958fc2f284a148fef7301f37953d8df28d1bcf5314a99d30ca0c4
Contents?: true
Size: 331 Bytes
Versions: 69
Compression:
Stored size: 331 Bytes
Contents
var mout = require('mout'); function indent(Handlebars) { Handlebars.registerHelper('indent', function (context) { var hash = context.hash; var indentStr = mout.string.repeat(' ', parseInt(hash.level, 10)); return context.fn(this).replace(/\n/g, '\n' + indentStr); }); } module.exports = indent;
Version data entries
69 entries across 69 versions & 2 rubygems