diff --git a/index.js b/index.js index 3b172a1..d3840a7 100644 --- a/index.js +++ b/index.js @@ -226,8 +226,21 @@ pillars.handler = function pillarsHandler(req,res){ var middlewareHandling = new Procedure(); for(var i=0,l=pillars.middleware.length;i= 0) { - gw.render(path); + //gw.render(path); + gw.redirect(gw.path.replace(/\.[^\.]*$/,'')); } else { stats.path = path; gw.file(stats); diff --git a/package.json b/package.json index 8fb1edd..3b4b54f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pillars", "description": "Pillars.js web development framework for Node.js", - "version": "0.4.2", + "version": "0.5.0", "author": { "name": "Javier Gallego Martín", "email": "bifuer@gmail.com" @@ -65,7 +65,7 @@ "unit.js": "*" }, "engines" : { - "node" : ">=0.12.0" + "node" : ">=6.9.5" }, "main": "./index.js", "scripts":{