kirbysayshi / vash

Vash, the 60 billion double-dollar template-maker. Razor syntax, for JavaScript templates
Other
524 stars 60 forks source link

Add Support For Express Multiple Views Paths #96

Closed atom0s closed 9 months ago

atom0s commented 8 years ago

Information on this change to Express can be seen here: https://github.com/strongloop/express/releases/tag/4.10.0

Express, since v4.10.0, now supports multiple views locations.

Attempting to make use of this feature in vash causes the following error to occur:

Path must be a string. Received [ 'C:\\path\\to\\views\\1', 'C:\\path\\to\\views\\2' ]

File: layout.js Line: 51

    if( filepath.indexOf( path.normalize( options.settings.views ) ) === -1 ){