Catalyst::ActionRole::CurrentView - Set the current view via an action attribute
package MyApp::Controller::Example; use Moose; use MooseX::MethodAttributes; extends 'Catalyst::Controller'; # Same as $c->stash(current_view => 'HTML'); sub root :Chained(/) Does(CurrentView) View(HTML) { my ($self, $c) = @_; } __PACKAGE__->meta->make_immutable;
Just an actionrole to let you set the current view via an attribute
John Napiorkowski <jnapiork@cpan.org>
Copyright (c) 2021 the above named AUTHOR and CONTRIBUTORS
You may distribute this code under the same terms as Perl itself.
To install Catalyst::Plugin::CurrentComponents, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::CurrentComponents
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::CurrentComponents
For more information on module installation, please visit the detailed CPAN module installation guide.