Comparing version 0.2.6 to 0.2.7
@@ -11,3 +11,3 @@ exports.responsePatch = function(app) { | ||
options = beforeRender(req, res, view, options, callback); | ||
app.execEvent('beforeRender', [view, options, callback]) | ||
app.execEvent('beforeRender', [view, options, callback, req, res]) | ||
_render.call(res, view, options, callback); | ||
@@ -14,0 +14,0 @@ }; |
{ | ||
"name": "oils", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Oils js framework built on top of Express.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -21,4 +21,5 @@ oils | ||
Version 0.2.6 ([Download](https://github.com/mannyvergel/oils-js/archive/v0.2.6.zip)) | ||
Version 0.2.7 ([Download](https://github.com/mannyvergel/oils-js/archive/v0.2.7.zip)) | ||
* Fix bug regarding ```includeModel``` caching | ||
* Added ```req, res``` parameters in ```beforeRender``` event hook | ||
@@ -167,3 +168,3 @@ Version 0.2.5 ([Download](https://github.com/mannyvergel/oils-js/archive/v0.2.5.zip)) | ||
``` | ||
app.on('beforeRender', function(view, options, callback) { | ||
app.on('beforeRender', function(view, options, callback, req, res) { | ||
//called before res.render(...); | ||
@@ -170,0 +171,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57724
215