barc/express-hbs — pull request #6 by nchen-sfly (2012-12-12 23:26:14+00:00)
Title: - Update cachePartials() to skip over non-files.

Running express-hbs 0.1.2-pre, we encountered that ```cachePartials()``` was reading directories under ```/partials``` and throwing an error. (In our case, our partials directory was actually empty except for the .svn dir created by subversion.) So here's a patch to call ```fs.statSync()``` on each file and only load them if they are actually files.