debian-mirror-gitlab/debian/gems-compat/sassc-rails-2.1.2/lib/sassc/rails/functions.rb

14 lines
324 B
Ruby
Raw Normal View History

2019-08-03 14:34:24 +05:30
# frozen_string_literal: true
require 'sprockets/sass_functions'
module Sprockets
module SassFunctions
def asset_data_url(path)
::SassC::Script::Value::String.new("url(" + sprockets_context.asset_data_uri(path.value) + ")")
end
end
end
::SassC::Script::Functions.send :include, Sprockets::SassFunctions