module Sprockets::Loader

def asset_from_cache(key)

Returns a hash of values representing an asset
This method converts all "compressed" paths to absolute paths.

key - A String containing lookup information for an asset

Internal: Load asset hash from cache
def asset_from_cache(key)
  asset = cache.get(key, true)
  if asset
    asset[:uri]       = expand_from_root(asset[:uri])
    asset[:load_path] = expand_from_root(asset[:load_path])
    asset[:filename]  = expand_from_root(asset[:filename])
    asset[:metadata][:included].map!          { |uri| expand_from_root(uri) } if asset[:metadata][:included]
    asset[:metadata][:links].map!             { |uri| expand_from_root(uri) } if asset[:metadata][:links]
    asset[:metadata][:stubbed].map!           { |uri| expand_from_root(uri) } if asset[:metadata][:stubbed]
    asset[:metadata][:required].map!          { |uri| expand_from_root(uri) } if asset[:metadata][:required]
    asset[:metadata][:dependencies].map!      { |uri| uri.start_with?("file-digest://") ? expand_from_root(uri) : uri } if asset[:metadata][:dependencies]
    asset[:metadata].each_key do |k|
      next unless k =~ /_dependencies\z/
      asset[:metadata][k].map! { |uri| expand_from_root(uri) }
    end
  end
  asset
end