# File lib/compass/sass_extensions/functions/inline_image.rb, line 9 def inline_font_files(*args) raise Sass::SyntaxError, "An even number of arguments must be passed to font_files()" unless args.size % 2 == 0 files = [] while args.size > 0 path = args.shift.value real_path = File.join(Compass.configuration.fonts_path, path) url = inline_image_string(data(real_path), compute_mime_type(path)) files << "#{url} format('#{args.shift}')" end Sass::Script::String.new(files.join(", ")) end
# 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) inline_image_string(data(real_path), compute_mime_type(path, mime_type)) end
Generated with the Darkfish Rdoc Generator 2.