SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. my $app = sub { ... };
  2. builder {
  3.     enable "Plack::Middleware::Foo";
  4.     enable "Plack::Middleware::Bar", opt => "val";
  5.     enable "Plack::Middleware::Baz";
  6.     enable sub {
  7.         my $app = shift;
  8.         sub {
  9.             my $env = shift;
  10.             $app->($env);
  11.         };
  12.     };
  13.     $app;
  14. };
RAW Paste Data
Top