class ActionView::PathResolver

def extract_handler_and_format_and_variant(path)

to the resolver.
from the path, or the handler, we should return the array of formats given
Extract handler, formats and variant from path. If a format cannot be found neither
def extract_handler_and_format_and_variant(path)
  details = @path_parser.parse(path)
  handler = Template.handler_for_extension(details[:handler])
  format = details[:format] || handler.try(:default_format)
  variant = details[:variant]
  # Template::Types[format] and handler.default_format can return nil
  [handler, format, variant]
end