sunng87/handlebars-iron

DirectorySource not loading templates in a heirarchy

Closed this issue · 2 comments

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.

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

Fixed in cd9c33c and will be released in 0.13.2