module SassC::Rails::SassTemplate::Functions

def asset_data_url(path)

def asset_data_url(path)
  url = sprockets_context.asset_data_uri(path.value)
  ::SassC::Script::Value::String.new("url(" + url + ")")
end

def asset_path(path, options = {})

def asset_path(path, options = {})
  path = path.value
  path, _, query, fragment = URI.split(path)[5..8]
  path     = sprockets_context.asset_path(path, options)
  query    = "?#{query}" if query
  fragment = "##{fragment}" if fragment
  ::SassC::Script::Value::String.new("#{path}#{query}#{fragment}", :string)
end

def asset_url(path, options = {})

def asset_url(path, options = {})
  ::SassC::Script::Value::String.new("url(#{asset_path(path, options).value})")
end