periodicjs.core.controller
Advanced tools
Comparing version 3.9.0 to 4.0.0
@@ -337,2 +337,24 @@ /* | ||
/** | ||
* short hand method for rendering views | ||
* @param {object} req [description] | ||
* @param {object} res [description] | ||
* @param {object} viewtemplate [description] | ||
* @param {object} viewdata [description] | ||
* @return {object} [description] | ||
*/ | ||
Controller.prototype.renderView = function(req,res,viewtemplate,viewdata){ | ||
this.getPluginViewDefaultTemplate(viewtemplate, | ||
function (err, templatepath) { | ||
this.handleDocumentQueryRender({ | ||
res: res, | ||
req: req, | ||
err: err, | ||
renderView: templatepath, | ||
responseData: viewdata | ||
}); | ||
}.bind(this) | ||
); | ||
}; | ||
/** | ||
* short hand mongoose load document query | ||
@@ -339,0 +361,0 @@ * @param {object} options model,docid - id or name,callback,population -mongoose population, selection - mongoose selection |
{ | ||
"name": "periodicjs.core.controller", | ||
"description": "Customizable CMS platform", | ||
"version": "3.9.0", | ||
"version": "4.0.0", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "engines": { |
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
139746
1533