shannonmoeller / gulp-hb

A sane Gulp plugin to compile Handlebars templates. Useful as a static site generator.
http://npm.im/gulp-hb
MIT License
147 stars 14 forks source link

Add option for removing path from partial names #18

Closed axelboc closed 9 years ago

axelboc commented 9 years ago

Hi,

This is in reference to closed issue #13.

I thought it was very convenient when the name of the partials did not include the path. I always prefix my partials with namespaces, so I never had any name clashes. Now, my templates are much more difficult to read.

Would it be possible to add an option to disable this feature so as to not having the path in the name of the partial?

Thanks a lot, Axel

shannonmoeller commented 9 years ago

Added parseDataName, parseHelperName, and parsePartialName. Released as v2.5.0.

axelboc commented 9 years ago

So fast! And great solution, thanks a lot!