jimsynz / hamlbars

Some extensions to HAML to allow generation of Handlebars templates.
https://github.com/jamesotron/hamlbars.git
MIT License
179 stars 43 forks source link

hamlbars precompilation not working correctly in rails 4 production environment #55

Closed arashm closed 10 years ago

arashm commented 10 years ago

when you do a RAILS_ENV=production rake assets:precompile in Rails4 you will get a minified version of JS files. I just realized that hamlbars is not involved in this compilation. I can see haml syntax inside the compiled file:

data.buffer.push("%h1.ui.header.dash-header Posts List\n\n");

This way templates are not rendered in browser. While hamlbars works correctly in development environment and ember didn't log any errors, it took me hours to find out where the problem is.

Can you help?

arashm commented 10 years ago

This was a problem with sprockets cache. If anybody had the same issue, just remove the tmp/cache/assets folder and recompile the assets.