| 1 | package Plack::Middleware::Debug::Dancer::Version; | ||
| 2 | BEGIN { | ||
| 3 | $Plack::Middleware::Debug::Dancer::Version::VERSION = '0.03'; | ||
| 4 | } | ||
| 5 | |||
| 6 | # ABSTRACT: Show Dancer's version | ||
| 7 | |||
| 8 | use strict; | ||
| 9 | use warnings; | ||
| 10 | use parent qw(Plack::Middleware::Debug::Base); | ||
| 11 | |||
| 12 | sub run { | ||
| 13 | my ( $self, $env, $panel ) = @_; | ||
| 14 | |||
| 15 | return sub { | ||
| 16 | $panel->title('Dancer::Version'); | ||
| 17 | $panel->nav_title('Dancer::Version'); | ||
| 18 | $panel->nav_subtitle($Dancer::VERSION); | ||
| 19 | }; | ||
| 20 | } | ||
| 21 | |||
| 22 | 1; | ||
| 23 | |||
| 24 | |||
| 25 | __END__ |