Skip to content

Use Express4 route instead of app. Fixes ejs view#29

Open
zevero wants to merge 3 commits into
cianclarke:masterfrom
zevero:master
Open

Use Express4 route instead of app. Fixes ejs view#29
zevero wants to merge 3 commits into
cianclarke:masterfrom
zevero:master

Conversation

@zevero
Copy link
Copy Markdown

@zevero zevero commented Sep 12, 2016

Integrating you gallery into my express app, res.render had problems finding my view directory.
After changing from app to router I am fine.
For standalone "views" and "view engine" are already set in examples/app.js so no need to set twice. I suspect you needed to set it again since a new app can not be aware of it. But router is.

@zevero
Copy link
Copy Markdown
Author

zevero commented Oct 24, 2016

Please merge ... there is no drawback :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants