The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catalyst::Plugin::StatusMessageTypeRole - A Moose Role to do the actual saving and retrieval of status and error messages.

SYNOPSIS

    package Catalyst::Plugin::StatusMessage;
    
    use Moose;
    
    with 'Catalyst::Plugin::StatusMessageTypeRole' => {
        type    => 'status_msg',
        handles => [qw/get_status_msg set_status_msg/],
    };
    
    ...

DESCRIPTION

A parameterized Moose Role that saves and retrieves status messages to/from the Catalyst session. Each message is associated with a random token to prevent the wrong message showing up on two screens. The message is removed after the first time it is retrieved.

AUTHOR

Kennedy Clark, hkclark@gmail.com

COPYRIGHT

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.