@nakedcreativity/cee-ms-node 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -79,7 +79,7 @@ function ceems(config) {
79
79
  return html;
80
80
  });
81
81
  }
82
- });
82
+ });
83
83
 
84
84
  this.app.listen(config.port, function () {});
85
85
 
@@ -139,7 +139,7 @@ ceems.prototype.load = function(path){
139
139
  ceems.prototype.render = function(req, res, page=null) {
140
140
 
141
141
  if(!page){
142
- this.load(req._parsedUrl.pathname)
142
+ page = this.load(req._parsedUrl.pathname)
143
143
  }
144
144
 
145
145
  // get any external data, and save this into the page
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakedcreativity/cee-ms-node",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Cee.ms for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {