module Sprockets::SasscProcessor::Functions
def asset_path(path, options = {})
own base implementation.
Will raise NotImplementedError in the future. Users should provide their
Context#asset_path.
Default implementation is deprecated. Currently defaults to
Public: Generate a url for asset path.
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 Autoload::SassC::Script::Value::String.new("#{path}#{query}#{fragment}", :string) end