leshill / handlebars_assets

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

hbs not getting removed from compiled asset's filename #37

Closed axsuul closed 11 years ago

axsuul commented 11 years ago

Using 0.6.6, for some reason my templates like template.jst.hbs are getting precompiled to template.hbs.js. I'm actually able to access template.js so it's getting precompiled correctly, it's just the filename is wrong. So somehow, hbs is not getting removed from filename. Anyone know what's going on?

What's interesting is that simply template.hbs will become template.js properly. Does that mean it's likely a sprockets issue?

axsuul commented 11 years ago

Moving my templates/ directory underneath /app/assets and adding it to config.assets.paths fixed this.