sinatra-asset-pipeline icon indicating copy to clipboard operation
sinatra-asset-pipeline copied to clipboard

asset-url in sass file

Open xlozinguez opened this issue 12 years ago • 1 comments

Hi, I was wondering if anyone had the same issue I am encountering right now when trying to reference an asset image url in an assets/stylesheets scss file...

transparent asset-url("bg_black.png") repeat top left; remains transparent asset-url("bg_black.png") repeat top left in the generated css...

Going to give a shot at debugging the issue; wanted to throw it out there in the meantime and see if anyone had any idea...

Thanks,

X

xlozinguez avatar Jul 02 '12 02:07 xlozinguez

asset-url is Ruby code, not Sass, so you need to use erb. Add .erb to the end of your file, like stylesheet.sass.erb

mcfiredrill avatar Dec 17 '12 04:12 mcfiredrill