Created
May 19, 2014 08:46
-
-
Save ytnobody/4c93ff0e98dd7ac19d8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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