Catalyst::Plugin::SpecialAction::Trail - Support for the 'trail' special action
Version 0.01
# enabling the 'trail' special action in a single controller: package MyApp::Controller::Foo; use Moose; use namespace::autoclean; extends 'Catalyst::Controller'; with 'Catalyst::TraitFor::Controller::SpecialAction::Trail'; sub trail : Private { my ($self, $c, @args) = (shift, shift, @_); ... } # globally enabling the 'trail' special action: package MyApp; use Moose; use namespace::autoclean; extends 'Catalyst'; __PACKAGE__->setup(qw/ SpecialAction::Trail /); # now you can use 'trail' in any controller in your app
This is ALPHA SOFTWARE. Use at your own risk. Features may change.
This module introduces a new special action trail that unites the features of end and auto special actions (see "Built-in special actions" in Catalyst::Manual::Intro):
trail
end
auto
Like end, the trail actions will be run at the end of the request, after all URL-matching actions are called; but they are called before any end is run.
Like auto, multiple trail actions will be run in turn, starting with the application class and going through to the most specific controller class, and the processing chain stops if any of them returns false (any remaining trail actions are skipped and the control goes to end if there's any).
Overridden (with an 'around' method modifier) from "setup_component" in Catalyst. Applies the Catalyst::TraitFor::Controller::SpecialAction::Trail role to the Catalyst::Controller instance.
Catalyst::Controller
Catalyst, Catalyst::Manual::Intro.
Norbert Buchmuller, <norbi at nix.hu>
<norbi at nix.hu>
Please report any bugs or feature requests to bug-catalyst-plugin-specialaction-trail at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-Plugin-SpecialAction-Trail. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-catalyst-plugin-specialaction-trail at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Catalyst::Plugin::SpecialAction::Trail
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Catalyst-Plugin-SpecialAction-Trail
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Catalyst-Plugin-SpecialAction-Trail
CPAN Ratings
http://cpanratings.perl.org/d/Catalyst-Plugin-SpecialAction-Trail
Search CPAN
http://search.cpan.org/dist/Catalyst-Plugin-SpecialAction-Trail/
Copyright 2010 Norbert Buchmuller, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Plugin::SpecialAction::Trail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::SpecialAction::Trail
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::SpecialAction::Trail
For more information on module installation, please visit the detailed CPAN module installation guide.