module Roda::RodaPlugins::PathMatchers::RequestMethods

def match_extension(ext)

request path end with the extension.
Match when the current segment ends with the given extension.
def match_extension(ext)
  match_suffix(".#{ext}")
end