rstacruz / sinatra-assetpack

Package your assets transparently in Sinatra.
http://ricostacruz.com/sinatra-assetpack/
MIT License
541 stars 97 forks source link

Automatically Compile Coffee and Less? #55

Closed aterris closed 12 years ago

aterris commented 12 years ago

I'm having a few problems.

  1. I am having the issue that is present in #44 and #48. Making the change as per #48 allowed me to call register.
  2. After making that change I am able to use asset pack for the most part. However, I am not getting it to compile my assets automatically (coffeescript and less - like it does on my older project). I have been digging through the codebase, but I'm still just gaining context on the project and any leads would be appreciated.

It is very possible I am just doing something wrong on my end, since I am having trouble finding any version discrepancies between the project where this works and the new project where it doesnt. I have been fiddling all day today and havent figured out the issue.

aterris commented 12 years ago

So....

It seems that 2. was caused by my fix to 1 from #48 (require sinatra/base explicitly)

I think the problem was that I had Bundler.require before require 'sinatra/base' in my config.ru

Hopefully my struggles can help someone else with this issue. If anyone needs more info feel free to ping me here and I can provide more.