Code Alignment

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-05-13 12:29:39 -07:00
parent 2fd59fd334
commit 5e625ce381
2 changed files with 6 additions and 11 deletions

View File

@ -51,13 +51,8 @@ function markdown (mode, input, data, hbs) {
} else {
input = input.replace(/\{!\{([\s\S]*?)\}!\}/mg, (match, contents) => {
try {
const result = hbs(contents, data);
return 'æææ' + result + 'æææ';
} catch (e) {
log.error(e);
return '';
}
});
input = input.replace(/<!--[[\]]-->/g, '');
@ -114,7 +109,7 @@ module.exports = exports = async function (prod) {
const contents = await readFile(file);
templates[name] = handybars(contents.toString('utf8'), env);
} catch (e) {
log.error('Could not load partial ' + file, e);
log.error('Could not load template ' + file, e);
}
}