diff options
Diffstat (limited to 'lib/Dancer')
-rw-r--r-- | lib/Dancer/Debug.pm | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/Dancer/Debug.pm b/lib/Dancer/Debug.pm index dea1d82..4d0f7f0 100644 --- a/lib/Dancer/Debug.pm +++ b/lib/Dancer/Debug.pm @@ -9,11 +9,21 @@ __END__ =head1 NAME -Dancer::Debug - +Dancer::Debug - Extension for Dancer specific panel to L<Plack::Middleware::Debug> =head1 SYNOPSIS - use Dancer::Debug; + my $handler = sub { + my $env = shift; + my $request = Dancer::Request->new($env); + Dancer->dance($request); + }; + + $handler = builder { + enable "Debug", + panels => [qw/Dancer::Settings Dancer::Logger Parameters Dancer::Version/]; + $handler; + }; =head1 DESCRIPTION |