def parse_asset_uri(uri)
      scheme, _, path, query = split_file_uri(uri)

      unless scheme == 'file'
        raise URI::InvalidURIError, "expected file:// scheme: #{uri}"
      end

      return path, parse_uri_query_params(query)
    end
def parse_asset_uri(uri)
      scheme, _, path, query = split_file_uri(uri)

      unless scheme == 'file'
        raise URI::InvalidURIError, "expected file:// scheme: #{uri}"
      end

      return path, parse_uri_query_params(query)
    end
Internal: Parse Asset URI.

 Examples

   parse("file:///tmp/js/application.coffee?type=application/javascript")
   # => "/tmp/js/application.coffee", {type: "application/javascript"}

 uri - String asset URI

 Returns String path and Hash of symbolized parameters.