![]() |
![]()
| ![]() |
![]()
NAMEPlack::App::Cascade - Cascadable compound application SYNOPSISuse Plack::App::Cascade; use Plack::App::URLMap; use Plack::App::File; # Serve static files from multiple search paths my $cascade = Plack::App::Cascade->new; $cascade->add( Plack::App::File->new(root => "/www/example.com/foo")->to_app ); $cascade->add( Plack::App::File->new(root => "/www/example.com/bar")->to_app ); my $app = Plack::App::URLMap->new; $app->map("/static", $cascade); $app->to_app; DESCRIPTIONPlack::App::Cascade is a Plack middleware component that compounds several apps and tries them to return the first response that is not 404. METHODS
AUTHORTatsuhiko Miyagawa SEE ALSOPlack::App::URLMap Rack::Cascade
|