mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Go back to old behavior and let the context end the stream
This commit is contained in:
parent
843888bca5
commit
8df1392074
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user