Partial paths

Since this isn't always desirable behavior, it must be explicitly enabled for the component. Mason will call method allow_path_info on the component class, and will only allow the match if it returns true:

<%class>
method allow_path_info { 1 }
</%class>

The default allow_path_info returns false.

allow_path_info is not checked on dhandlers, since the whole point of dhandlers is to match partial paths.

Trailing slash

If the request URL has a trailing slash (ends with /), we remove it before the match process begins and add it to the $m->path_info. Components that should match must have allow_path_info return true.