NAME
DancerX::Routes - Object base class for any Dancer Routes
SYNOPSIS
package MyApp::Dashboard;
use base "DancerX::Routes";
sub main_page :GET("/") :GET(qr/^\/index/) {
my $self = shift;
$self->template("dashboard");
}
1;
DESCRIPTION
We can write our dancer route module in Object-oriented programming style.
AUTHOR
Michael Vu
LICENSE AND COPYRIGHT
Copyright 2009-2010 Michael Vu
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.