def find_sitemap_route(name_or_path)

      name_or_path = name_or_path.to_s

      # strip off the extension if it exists
      if name_or_path.include?(".")
        name_or_path = name_or_path.slice(0, name_or_path.rindex("."))
      end

      full_name = "#{name_or_path}_sitemap"

      # search for a sitemap route matching the path passed to the method.
      # the route MUST be marked as a sitemap.  return nothing if the sitemap route cannot be found.
      return self.routes.find {|route| route.is_sitemap? &&
                                    (route.path.spec.to_s =~ /^#{name_or_path}/ ||
                                    route.sitemap_route_name.eql?(name_or_path) ||
                                    route.sitemap_route_name.eql?(full_name))}
    end
def find_sitemap_route(name_or_path)

      name_or_path = name_or_path.to_s

      # strip off the extension if it exists
      if name_or_path.include?(".")
        name_or_path = name_or_path.slice(0, name_or_path.rindex("."))
      end

      full_name = "#{name_or_path}_sitemap"

      # search for a sitemap route matching the path passed to the method.
      # the route MUST be marked as a sitemap.  return nothing if the sitemap route cannot be found.
      return self.routes.find {|route| route.is_sitemap? &&
                                    (route.path.spec.to_s =~ /^#{name_or_path}/ ||
                                    route.sitemap_route_name.eql?(name_or_path) ||
                                    route.sitemap_route_name.eql?(full_name))}
    end
Builds a list of routes associated with a sitemap.  The actual list of routes returned is based
 on {DuckMap::Route#sitemap_route_name sitemap_route_name}, which is the named route of the sitemap.
 @note See {DuckMap::Mapper#sitemap} for a full explanation of how to define a sitemap and how those rules affect this method.
 @param [String] name_or_path  The request.path of the current sitemap url or the name assigned to the sitemap via config/routes.rb.
 @return [Array]