ericf/express3-handlebars — pull request #64 by joanniclaborde (2014-06-23 15:35:57+00:00)
Title: Each partials dir can be namespaced.

As stated in #20, having multiple `partialsDir` can introduce naming collisions. This pull request adds support for partials namespaces. Each `partialsDir` can optionally be specified as an object, with a `dir` and `namespace` properties. Example:

```
var partialsDir = [
'local/views',
{dir: '/otherPackage/shared/views', namespace: 'otherPackage'}
];
...
app.engine('handlebars', exphbs({partialsDir: partialsDir}));
```

If both `local/views` and `/otherPackage/shared/views` contain a template named `status.hbs`, they can be included like this in a view:

```
{{> status}}
{{> otherPackage/status}}
```