Search code examples
ruby-on-railsruby-on-rails-3.2compass-sasscss-sprites

Is there any good alternative to compass-rails for automatic css sprites with rails?


I installed compass-rails in my Rails 3.2.6 app but only for the automatic sprites feature and I'm thinking that :

  1. This is probably overkill
  2. I need to launch the watch task or nothing happens (that's not really the problem)
  3. Once watch notices changes, it is awfully slow compared to Rails original way

I've tried css_sprite but it won't install because of yet another missing library (I'm on windows)

And lemonade but the server won't start with it in the gemfile since it's been deprecated and integrated into... compass

So I'm wondering if there is any simple gem that can generate sprites and associated classes ?


Solution

  • Sprite Factory has worked well for me for some solutions: https://github.com/jakesgordon/sprite-factory