From eb4db48d0e65a3c7c23b7372566fa7121f0cd574 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 18 Apr 2010 11:46:33 +0200 Subject: some dancer specific panel for debugging --- lib/Dancer/Debug.pm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'lib/Dancer') 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 =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 -- cgit 1.4.1