Catalyst::TraitFor::Controller::RenderView - Alternative to Catalyst::Action::RenderView using method modifiers.
package MyApp::Controller::Root; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller' } with 'Catalyst::TraitFor::Controller::RenderView;
This is an experimental alternative to Catalyst::Action::RenderView.
Provided if not present, wrapped to run the same checks as Catalyst::Action::RenderView after end action.
The code is a horrible hack, as it delegates all the work to Catalyst::Action::RenderView.
How end method attributes will compose onto other classes which already have an end method is unknown (they shouldn't..)
How renaming the supplied 'end' method will work is untested at the moment.
Tomas Doran (t0m) bobtfish@bobtfish.net.
bobtfish@bobtfish.net
Copyright 2009 the above author(s).
This sofware is free software, and is licensed under the same terms as perl itself.
To install Catalyst::TraitFor::Controller::RenderView, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::TraitFor::Controller::RenderView
CPAN shell
perl -MCPAN -e shell install Catalyst::TraitFor::Controller::RenderView
For more information on module installation, please visit the detailed CPAN module installation guide.