leshill / handlebars_assets

Use handlebars.js templates with the Rails asset pipeline.
MIT License
647 stars 159 forks source link

Fix partial names for Ember #48

Closed AlexanderZaytsev closed 11 years ago

AlexanderZaytsev commented 11 years ago

Ember requires partial names like post/_user.

Without this patch, putting _user.hbs inside the post directory results in the _post_user template name.

leshill commented 11 years ago

Hi @AlexanderZaytsev,

Thanks for the PR! You have motivated me to fix this because Handlebars.js now support paths for partials directly, so the underscore hack has been removed completely (not just for ember).