module Sprockets::Resolve

def parse_path_extnames(path)


# => ["foo", "application/javascript", [".coffee", ".erb"]]
"foo.js.coffee.erb"

Internal: Returns the name, mime type and `Array` of engine extensions.
def parse_path_extnames(path)
  engines = []
  extname, value = match_path_extname(path, extname_map)
  if extname
    path = path.chomp(extname)
    type, engines, pipeline = value.values_at(:type, :engines, :pipeline)
  end
  return path, type, engines, pipeline
end