Leyland::Controller - Leyland controller base class
version 0.001007
# used internally
This Moose role describes how Leyland controllers are to be created. For information about creating controllers, please see Leyland::Manual::Controllers.
The prefix of the controller. Defaults to the empty string (denoting a root controller).
A Tie::IxHash object with all the controller's routes.
Receives an HTTP request method, a regular expression for path matching, and a subroutine reference that together describe a route, and adds the route to the controller's "routes" list.
Sets the prefix for all routes in the controller.
The following methods are meant to be overridden by consuming classes (i.e. controllers). For information on their purpose, see Leyland::Manual::Controllers.
Provides Leyland controllers with a default auto() method that doesn't do anything. Controllers are expected to override this.
auto()
Provides Leyland controllers with a default pre_route() method that doesn't do anything.
pre_route()
Provides Leyland controllers with a default pre_template() method that doesn't do anything.
pre_template()
Provides Leyland controllers with a default post_route() method that doesn't do anything.
post_route()
Ido Perlmuter, <ido at ido50.net>
<ido at ido50.net>
Please report any bugs or feature requests to bug-Leyland at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Leyland. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-Leyland at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Leyland::Controller
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Leyland
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Leyland
CPAN Ratings
http://cpanratings.perl.org/d/Leyland
Search CPAN
http://search.cpan.org/dist/Leyland/
Copyright 2010-2011 Ido Perlmuter.
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 Leyland, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Leyland
CPAN shell
perl -MCPAN -e shell install Leyland
For more information on module installation, please visit the detailed CPAN module installation guide.