Plack::Middleware::Inline - Anonymous Plack::Middlewares
version 0.02
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); }; }; }
To install Plack::Middleware::Inline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::Inline
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::Inline
For more information on module installation, please visit the detailed CPAN module installation guide.