publicclass / express-partials

Express 3.x Layout & Partial support.
182 stars 146 forks source link

Supporting paths with backslash (windows) #24

Closed rguerreiro closed 11 years ago

rguerreiro commented 11 years ago

When running on windows path.join("xpto", "something") will return "xpto\something" and resolveObjectName() won't work. This can be fixed by simply calling the split() like this: split(path.sep || '/')