thefron / dust-rails

Use dust.js with rails
20 stars 18 forks source link

unexpected token: operator (<) when precompiling #4

Open jpaas opened 11 years ago

jpaas commented 11 years ago

I am getting the following

$ bin/rake assets:precompile /Users/jpaas/.rvm/rubies/ruby-1.9.3-p327/bin/ruby bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets rake aborted! Unexpected token: operator (<) (line: 18169, col: 1, pos: 543284)

undefined

My project only has 1 dust template and this error goes away as soon as I remove it from the application.js manifest. So whatever it's generating, precompile doesn't like it.

This is pretty serious problem because I can't deploy to heroku without precompilation. :(

jpaas commented 11 years ago

Just as follow-up, I tried dust_assets, and it works.

caio-ribeiro-pereira commented 11 years ago

Hi, I am having the same problems on Heroku, and I would like to know how to fix it, because your gem is easier than dust_assets. And I forked it and update the dust.js to the latest 1.2.5 version but I can't run it well :(