diff --git a/lib/express-handlebars.js b/lib/express-handlebars.js index af8c656..f3af289 100644 --- a/lib/express-handlebars.js +++ b/lib/express-handlebars.js @@ -189,7 +189,7 @@ ExpressHandlebars.prototype.renderView = function (viewPath, options, callback) // to `settings.view` path var view; var viewsPath = options.settings && options.settings.views; - if (viewsPath) { + if (viewsPath && !Array.isArray(viewsPath)) { view = this._getTemplateName(path.relative(viewsPath, viewPath)); this.partialsDir = path.join(viewsPath, 'partials/'); this.layoutsDir = path.join(viewsPath, 'layouts/');