UNPKG

bricks-cli

Version:

Command line tool for developing ambitious ember.js apps

13 lines (9 loc) 331 B
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;