Plack::App::URLMap 

builder {
    mount "/foo" => builder {
        enable "Plack::Middleware::Foo";
        $app_foo;
    };
    mount "/bar" => $app_bar;
    mount "http://example.com/" => builder { $app3 };
    mount "/" => $app;
};