diff options
author | franck cuny <franck@lumberjaph.net> | 2010-04-18 11:46:33 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-04-18 11:46:33 +0200 |
commit | eb4db48d0e65a3c7c23b7372566fa7121f0cd574 (patch) | |
tree | 733db3456f1b81203f4c8663f7b0c304854bb474 /lib/Dancer | |
parent | initial commit (diff) | |
download | dancer-debug-eb4db48d0e65a3c7c23b7372566fa7121f0cd574.tar.gz |
some dancer specific panel for debugging
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 |