module Compass::SassExtensions::Functions::InlineImage
def inline_image(path, mime_type = nil)
def inline_image(path, mime_type = nil) path = path.value real_path = File.join(Compass.configuration.images_path, path) url = "url('data:#{compute_mime_type(path,mime_type)};base64,#{data(real_path)}')" Sass::Script::String.new(url) end