Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails to handle multiple express 'views' roots... #49

Open
mralexgray opened this issue Aug 5, 2016 · 0 comments
Open

fails to handle multiple express 'views' roots... #49

mralexgray opened this issue Aug 5, 2016 · 0 comments

Comments

@mralexgray
Copy link

not sure if this is a new 4.x feature of express.. but you can specify multiple search paths via something like...

app.set 'views', ["#{__dirname}/views", 'views']

however, this does NOT jive with express-partials...

TypeError: Path must be a string. Received [ '/node/coffeecup-test/views', 'views' ]

I've noticed particularly with layout files, but I would assume using an array in set "views" breaks various things.

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

No branches or pull requests

1 participant