Skip to content

Instantly share code, notes, and snippets.

@ytnobody
Created May 19, 2014 08:46
Show Gist options
  • Save ytnobody/4c93ff0e98dd7ac19d8a to your computer and use it in GitHub Desktop.
Save ytnobody/4c93ff0e98dd7ac19d8a to your computer and use it in GitHub Desktop.
use strict;
use Plack::Builder;
use Data::Dumper;
my $app = sub {
[404, [], ['Not Found']];
};
my $psgi = builder {
enable "Debug";
enable "Static", path => qr{^/impress/}, root => './';
$app;
};
builder {
sub {
my $env = shift;
my $res = $psgi->($env);
warn Dumper($res);
$res;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment