Skip to content

Commit

Permalink
Merge branch 'MoLow-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
doowb committed Sep 18, 2017
2 parents b5eadf6 + 341c40e commit bbdc3bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1543,8 +1543,12 @@ exports.vash.render = function(str, options, fn) {
engine.helpers[key] = options.helpers[key];
}
}

var tmpl = cache(options) || cache(options, engine.compile(str, options));
fn(null, tmpl(options).replace(/\n$/, ''));
tmpl(options, function sealLayout(err, ctx) {
ctx.finishLayout();
fn(null, ctx.toString().replace(/\n$/, ''));
});
} catch (err) {
fn(err);
}
Expand Down

0 comments on commit bbdc3bf

Please sign in to comment.