Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #462 from stormpath/fix-view-engine-res-render
Browse files Browse the repository at this point in the history
Fix issue with res.render() in render util not being called with original view path
  • Loading branch information
robertjd committed Jul 6, 2016
2 parents 0385b4e + dd89f9a commit 2671731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/render.js
Expand Up @@ -57,7 +57,7 @@ module.exports = function (req, res, view, options) {
res.send(renderJade(view, options));
} else if (extension) {
// Delegate to the view engine.
res.render(filename, options);
res.render(view, options);
} else {
throw new Error('Unexpected view option: "' + view + '". Please see documentation for express-stormpath');
}
Expand Down

0 comments on commit 2671731

Please sign in to comment.