Enable js-beautify.
In node_modules/slm/lib/template.js
:
p.render = function(src, model, options, vm) {
vm = vm || new this.VM();
var js_beautify = require('js-beautify');
if (undefined !== js_beautify) {
var html_beautify = require('js-beautify').html;
}
var compiled = this.compile(src, options, vm)(model, vm);
if (html_beautify !== undefined) {
compiled = html_beautify(compiled, {
"indent_size": 2,
"space_after_anon_function": true,
"end_with_newline": true
});
}
return compiled;
};