NAME
Plack::Middleware::Inline - Anonymous Plack::Middlewares
VERSION
version 0.02
SYNOPSIS
Note: Don't actually do this. This module is only useful if you're not using Plack::Builder.
use Plack::Builder;
builder {
enable Inline => code => sub {
my ($self, $env) = @_;
...
$self->app->($env);
};
$app
}
If you're already using Plack::Builder, just pass enable a sub:
use Plack::Builder;
builder {
enable sub {
my $app = shift;
return sub {
my $env = shift;
...
$app->($env);
};
};
}