Mojolicious::Plugin::VividParams - Vivid POST/GET Parameters Plugin
# Mojolicious
$self->plugin('vivid_params');
# Mojolicious::Lite
plugin 'vivid_params';
Mojolicious::Plugin::VividParams treats parameters as PHP / Rails style. Square brakets after variable name makes it in Hash or Array.
This is a EXPERIMENTAL plugin, use under your own risk.
# curl "http://example.com?p[foo][bar]=baz
<%= vivid->{p}->{foo}->{bar} %>
# Returns "baz"
<%= vivid('p')->{foo}->{bar} %>
Returns vivid parameters, in PHP/Rails style
Mojolicious::Plugin::VividParams inherits all methods from Mojolicious::Plugin and implements the following new ones.
$plugin->register;
Register helpers in Mojolicious application.