sunng87 / handlebars-iron

Handlebars middleware for Iron web framework
MIT License
119 stars 20 forks source link

DirectorySource not loading templates in a heirarchy #36

Closed ghotiphud closed 8 years ago

ghotiphud commented 8 years ago

Loading templates puts them all in a flat namespace instead of a heirarchy like described here in the README.

For DirectorySource, handlebars engine will walk the directory specified by prefix, try to register all templates matches the suffix, and extract its name as template name. For instance, ./examples/templates/some/path/index.hbs will be registered as some/path/index.

sunng87 commented 8 years ago

Thank you for reporting. I confirm this is a bug. I will look into it asap.

sunng87 commented 8 years ago

Fixed in cd9c33c and will be released in 0.13.2