Skip to content

Commit

Permalink
resolve2join
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojue committed Aug 19, 2013
1 parent a28b366 commit 6aa59db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/index.js
Expand Up @@ -18,7 +18,7 @@ module.exports = function(app) {
index: function(req, res, next) {
var query = req.query;
var view = Path.normalize(req.path).replace(/^\/|\/$/g, '');
var realfile = Path.resolve(app.settings.views, view + app.settings['view engine']);
var realfile = Path.join(app.settings.views, view + app.settings['view engine']);
if (fs.existsSync(realfile)) {
var context = new liquid.tinyliquid.Context();
context.setLocals('config', config);
Expand Down

0 comments on commit 6aa59db

Please sign in to comment.