set basic layout. adding status bar
This commit is contained in:
12
node_modules/bower/lib/templates/helpers/indent.js
generated
vendored
Normal file
12
node_modules/bower/lib/templates/helpers/indent.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user