chriso/klein.php — pull request #32 by abackstrom (2012-01-27 03:23:31+00:00)
Title: Make "match all" work with namespaces

Match-all is only supported in the top-level namespace, complicating the nesting of routes. This pull request enables the following syntax:

respond( function(){
echo "Outer\n";
});

with( "/foo", function(){
respond( function(){
echo "Inner\n";
});
});

Regex before: `^/foo$`
Regex after: `/foo(/|$)`