Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

periodicjs.core.controller

Package Overview
Dependencies
Maintainers
2
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

periodicjs.core.controller - npm Package Compare versions

Comparing version 3.9.0 to 4.0.0

22

lib/controller.js

@@ -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

2

package.json
{
"name": "periodicjs.core.controller",
"description": "Customizable CMS platform",
"version": "3.9.0",
"version": "4.0.0",
"main": "index.js",

@@ -6,0 +6,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc