The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::ActionRole::CurrentView - Set the current view via an action attribute

SYNOPSIS

    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;

DESCRIPTION

Just an actionrole to let you set the current view via an attribute

AUTHOR

  John Napiorkowski <jnapiork@cpan.org>
 

COPYRIGHT

Copyright (c) 2021 the above named AUTHOR and CONTRIBUTORS

LICENSE

You may distribute this code under the same terms as Perl itself.