module Middleman::Sass::Functions
def image_url(source, options={}, _cache_buster=nil)
background: image-url("image.jpg", $digest: true); // background: url("/assets/image-27a8f1f96afd8d4c67a59eb9447f45bd.jpg");
background: image-url("image.jpg"); // background: url("/assets/image.jpg");
=== Examples
arguments that mirror the +options+.
for the given +source+ as a Sass String. This supports keyword
Using Middleman::Util#asset_path, return the url CSS
def image_url(source, options={}, _cache_buster=nil) # Work with the Sass #image_url API if options.respond_to? :value case options.value when true return image_path source else options = {} end end ::SassC::Script::Value::String.new "url(#{image_path(source, options)})" end