DancerX::Routes - Object base class for any Dancer Routes
package MyApp::Dashboard; use base "DancerX::Routes"; sub main_page :GET("/") :GET(qr/^\/index/) { my $self = shift; $self->template("dashboard"); } 1;
We can write our dancer route module in Object-oriented programming style.
Michael Vu
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.
To install DancerX::Routes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DancerX::Routes
CPAN shell
perl -MCPAN -e shell install DancerX::Routes
For more information on module installation, please visit the detailed CPAN module installation guide.