shannonmoeller / handlebars-wax

The missing Handlebars API for data, partials, helpers, and decorators.
http://npm.im/handlebars-wax
MIT License
40 stars 9 forks source link

register partials fail for case sensitive path in my pc win10 #9

Closed charlenezell closed 8 years ago

charlenezell commented 8 years ago

the default partial parsing method is not work in my terminal integrated in vscode for the following replacement not work

var shortPath = fullPath.replace(basePath, '');

fullpath is C:/xxxx/xx.hbs and the basePath in my env is c:/xxxx/ so my workaround is your config option like this:

 var shortPath = fullPath.replace(new RegExp(basePath,"i"), '');

maybe you should fix this im using your gulp-hbs and was trap by this

shannonmoeller commented 8 years ago

Fixed and released as 4.0.1. Thanks!