Skip to content

Commit bbdc3bf

Browse files
committed
Merge branch 'MoLow-master'
2 parents b5eadf6 + 341c40e commit bbdc3bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/consolidate.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,8 +1543,12 @@ exports.vash.render = function(str, options, fn) {
15431543
engine.helpers[key] = options.helpers[key];
15441544
}
15451545
}
1546+
15461547
var tmpl = cache(options) || cache(options, engine.compile(str, options));
1547-
fn(null, tmpl(options).replace(/\n$/, ''));
1548+
tmpl(options, function sealLayout(err, ctx) {
1549+
ctx.finishLayout();
1550+
fn(null, ctx.toString().replace(/\n$/, ''));
1551+
});
15481552
} catch (err) {
15491553
fn(err);
15501554
}

0 commit comments

Comments
 (0)