Problem
How can I use the compass built-in helper with an image url that is not relative?
config.rb
relative_assets = false
I also commented on this completely
This code works
hdr-main.png lives in / test / images / on my local server.
.test{
$image:"hdr-main.png";
background: inline-image($image);
}
This code does not work
.test{
$image:"http://i.cdn.turner.com/cnn/.e/img/3.0/global/header/hdr-main.png";
background: inline-image($image);
}
Displays this error.
Compass was unable to compile one or more files in the project:
File not found or cannot be read: /Users/myname/test/images/http://i.cdn.turner.com/cnn/.e/img/3.0/global/header/hdr-main.png
source
share