Skip to content

Instantly share code, notes, and snippets.

@edenc
Created April 16, 2013 11:56
Show Gist options
  • Select an option

  • Save edenc/5395370 to your computer and use it in GitHub Desktop.

Select an option

Save edenc/5395370 to your computer and use it in GitHub Desktop.
use warnings;
use strict;
use Plack::Builder;
builder {
enable_if { $_[0]->{PATH_INFO} !~ m|^/static| } 'AccessLog';
sub {
return [200, ['Content-Type' => 'text/plain'], ['Hello World']]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment