ForestAdmin/lumber

View on GitHub
handlerbars/helpers/indent.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const Handlebars = require('handlebars');

Handlebars.registerHelper('indent', (level, value) => {
  return ' '.repeat(level * 2) + value;
});