module Middleman::Sass::Functions

def image_path(source, options={})


background: url(image-path("image.jpg", $digest: true)); // background: url("/assets/image-27a8f1f96afd8d4c67a59eb9447f45bd.jpg");
background: url(image-path("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 full path
def image_path(source, options={})
  p = ::Middleman::Util.asset_path(middleman_context, :images, source.value, map_options(options))
  ::SassC::Script::Value::String.new p.to_s, :string
end