例えば
[JLRoutes addRoute:@"/:object/:action/:primaryKey" handler:^BOOL(NSDictionary *parameters) {
NSString *object = parameters[@"object"];
NSString *action = parameters[@"action"];
NSString *primaryKey = parameters[@"primaryKey"];
// stuff
return YES;
}];と書いておくと、@"myapp://post/edit/123?debug=true&foo=bar"というURLが来たときにこうなる。
{
"object": "post",
"action": "edit",
"primaryKey": "123",
"debug": "true",
"foo": "bar",
"JLRouteURL" : "myapp://post/edit/123?debug=true&foo=bar",
"JLRoutePattern" : "/:object/:action/:primaryKey"
}地味に便利かも。


