Data::InputMonster::Util::Catalyst - InputMonster sources for common Catalyst sources
version 0.006
This module exports a bunch of routines to make it easy to use Data::InputMonster with Catalyst. Each method, below, is also available as an exported subroutine, through the magic of Sub::Exporter.
These sources will expect to receive the Catalyst object ($c) as the $input argument to the monster's consume method.
$c
$input
consume
This code is effectively abandonware. Although releases will sometimes be made to update contact info or to fix packaging flaws, bug reports will mostly be ignored. Feature requests are even more likely to be ignored. (If someone takes up maintenance of this code, they will presumably remove this notice.)
my $source = form_param($field_name);
This source will look for form parameters (with $c->req->params) with the given field name.
$c->req->params
my $source = body_param($field_name);
This source will look for form parameters (with $c->req->body_params) with the given field name.
$c->req->body_params
my $source = query_param($field_name);
This source will look for form parameters (with $c->req->query_params) with the given field name.
$c->req->query_params
my $source = session_entry($locator);
This source will look for an entry in the session for the given locator, using the dig utility from Data::InputMonster::Util.
dig
Ricardo SIGNES <rjbs@semiotic.systems>
This software is copyright (c) 2021 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::InputMonster::Util::Catalyst, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::InputMonster::Util::Catalyst
CPAN shell
perl -MCPAN -e shell install Data::InputMonster::Util::Catalyst
For more information on module installation, please visit the detailed CPAN module installation guide.