Comparing version 0.0.5 to 0.0.6
14
index.js
@@ -98,2 +98,3 @@ // todo 用更好的方式继承 app.response. | ||
bufs.push(output); | ||
flush(); | ||
done(); | ||
@@ -136,3 +137,3 @@ }); | ||
api.setFramework = function(js) { | ||
fis.framework = js; | ||
this.fis.framework = js; | ||
}; | ||
@@ -145,3 +146,12 @@ | ||
api.fork = function(fis, bigpipe, views) { | ||
views = views || api.views; | ||
if (arguments.length === 0 ) { | ||
fis = this.fis; | ||
bigpipe = this.bigpipe; | ||
views = this.views; | ||
} else if (arguments.length === 1) { | ||
bigpipe = this.bigpipe; | ||
views = this.views; | ||
} else if (arguments.length === 2) { | ||
views = this.views; | ||
} | ||
@@ -148,0 +158,0 @@ var forked = createHanlder(fis, bigpipe, views); |
{ | ||
"name": "yog-view", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "An express.js middleware for optimizing the order of js\\css output, and enabling render template in bigpipe mode.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7394
142