App::ZofCMS::Plugin::AutoDump - debugging plugin to quickly dump out query parameters and ZofCMS Template hashref
plugins => [ { Sub => 200 }, { AutoDump => 300 }, ], plug_sub => sub { ## this is optional, just for an example my ( $t, $q ) = @_; $t->{foo} = 'bar'; $q->{foo} = 'bar'; },
The module is a plugin for App::ZofCMS that provides means to quickly use Data::Dumper to dump query parameters hashref as well as ZofCMS Template hashref.
This documentation assumes you've read App::ZofCMS, App::ZofCMS::Config and App::ZofCMS::Template
plugins => [ { Sub => 200 }, { AutoDump => 300 }, ],
This plugin requires no configuration. To run it simply include it in the list of plugins to execute with the priority set at the right point of execution line.
Plugin assumes that you're using CGI::Carp (should be on by default if you've used zofcms_helper script to generate site's skeleton). When plugin is run it calls die Dumper [ $q, $t ] where $q is query parameters hashref and $t is ZofCMS Template hashef... therefore, in the browser's output the first hashef is the query.
zofcms_helper
die Dumper [ $q, $t ]
$q
$t
Fork this module on GitHub: https://github.com/zoffixznet/App-ZofCMS
To report bugs or request features, please use https://github.com/zoffixznet/App-ZofCMS/issues
If you can't access GitHub, you can email your request to bug-App-ZofCMS at rt.cpan.org
bug-App-ZofCMS at rt.cpan.org
Zoffix Znet <zoffix at cpan.org> (http://zoffix.com/, http://haslayout.net/)
You can use and distribute this module under the same terms as Perl itself. See the LICENSE file included in this distribution for complete details.
LICENSE
To install App::ZofCMS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::ZofCMS
CPAN shell
perl -MCPAN -e shell install App::ZofCMS
For more information on module installation, please visit the detailed CPAN module installation guide.