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

Mojolicious::Plugin::AdvancedMod::HashedParams - Transformation request parameters into a hash and multi-hash

SYNOPSIS

  # Transmit params:
  /route?message[body]=PerlOrDie&message[task][id]=32
    or
  <input type="text" name="message[task][id]" value="32"> 

  get '/route' => sub {
    my $self = shift;
    # you can also use permit parameters
    $self->hparams( qw/message/ );
    # return all parameters in the hash
    $self->hparams();
  };

AUTHOR

COPYRIGHT AND LICENSE

Copyright (C) 2013, 2014 Grishkovelli grishkovelli@gmail.com

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.