summary refs log tree commit diff
path: root/lib/Dancer
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Dancer')
-rw-r--r--lib/Dancer/Debug.pm37
1 files changed, 14 insertions, 23 deletions
diff --git a/lib/Dancer/Debug.pm b/lib/Dancer/Debug.pm
index 4d0f7f0..aa3a912 100644
--- a/lib/Dancer/Debug.pm
+++ b/lib/Dancer/Debug.pm
@@ -1,23 +1,27 @@
 package Dancer::Debug;
 
+# ABSTRACT: Extend Plack::Middleware::Debug with some specific panels for Dancer
+
 use strict;
 use warnings;
 our $VERSION = '0.01';
 
 1;
-__END__
 
-=head1 NAME
+=head1 SYNOPSIS
 
-Dancer::Debug - Extension for Dancer specific panel to L<Plack::Middleware::Debug>
+You can activate the panels in your development configuration file:
 
-=head1 SYNOPSIS
+    plack_middlewares:
+      Debug:
+        - panels
+        -
+          - Parameters
+          - Dancer::Version
+          - Dancer::Settings
+          - Dancer::Logger
 
-    my $handler = sub {
-        my $env     = shift;
-        my $request = Dancer::Request->new($env);
-        Dancer->dance($request);
-    };
+or in your app.psgi:
 
     $handler = builder {
         enable "Debug",
@@ -27,17 +31,4 @@ Dancer::Debug - Extension for Dancer specific panel to L<Plack::Middleware::Debu
 
 =head1 DESCRIPTION
 
-Dancer::Debug is
-
-=head1 AUTHOR
-
-franck cuny E<lt>franck@lumberjaph.netE<gt>
-
-=head1 SEE ALSO
-
-=head1 LICENSE
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
-=cut
+Dancer::Debug extends L<Plack::Middleware::Debug> with some specific panels for Dancer.