publicclass/express-partials

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

Opened this issue · 0 comments

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.