ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 384 forks source link

Add loadTemplates() API #21

Closed ericf closed 11 years ago

ericf commented 11 years ago

Currently, there is no way to load a collection of templates from a directory outside of of the configured partialsDir. Having an API to loadTemplates() from any directory would be very useful, and the loadPartials() method could call it.

This feature is especially helpful for people who want to share more than just their partialsDir with the client side of their app.