# File lib/compass/sass_extensions/functions/inline_image.rb, line 3 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