Fork me on GitHub

Zeke Sikelianos

Mumblings from the code swamp. Find my more interesting online-ness at zeke.sikelianos.com.

Dynamic background-image Strings with Sass 3 and Compass

I was having trouble defining a dynamic background image path in a Rails app using Sass 3 and Compass, because the quotes were getting encoded somewhere along the line during the conversion from Sass to CSS (presumably by Compass, as the sass-convert binary itself was not encoding the quotes). To solve the problem I started used Compass’s nifty image_url function..


Page 1 of 1