Go back to old behavior and let the context end the stream

This commit is contained in:
Patrick Steele-Idem 2014-03-28 16:20:19 -06:00
parent 843888bca5
commit 8df1392074

View File

@ -42,12 +42,8 @@ module.exports = function(runtime) {
var args = this._args;
var templatePath = args[0];
var data = args[1];
var _this = this;
var context = runtime.createContext(this)
.on('end', function() {
_this.end();
});
var context = runtime.createContext(this);
runtime.render(templatePath, data, context);
context.end();