Command-line CSS spriting
phpied.com
phpied.com
cmd `ls`
cmd `ls *png`
should be written as cmd *
cmd *.pngBut I don’t need it anymore. I’ve discovered @chriseppstein’s fabulous Compass. Now you don’t even need a command line — you can sprite directly in your (s)css!
http://beta.compass-style.org/reference/compass/helpers/spri...
(This version isn’t stable yet, so install with `gem install compass --pre`. Actually, not sure if this feature is stable yet or not, but the beta version of Compass rocks.)
- for flexibility, the CSS Sprite gem (https://github.com/flyerhzm/css_sprite)
- for ease of use, the Lemonade gem (https://github.com/hagenburger/lemonade)
Currently it only does fixed-width sprites, but handles the generation of CSS for you.
Can't wait to use this!