Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 300 Bytes
use Plack::Builder;
use Plack::Middleware::Static;
use MyApp;
my $app = MyApp->new;
$app->setup;
builder {
enable 'Plack::Middleware::Static',
path => qr{^/(js/|css/|swf/|images?/|imgs?/|static/|[^/]+\.[^/]+$)},
root => $app->path_to('root')->stringify;
$app->handler;
};