Template::Plugin::Dumpvalue - Interface to Dumpvalue through the Template Toolkit
[% USE d = Dumpvalue %] [% hash = { a => 1, b => 2, c => 3 } %] [% d.dumpValue(hash) %] [% d.dump_template_vars() %]
This module gives access to Dumpvalue's powerful debugging capabilities. Provides all the methods and options that Dumpvalue has with a little extra.
Extra option:
inHTML
Can be set in the constructor or with the method set(). Setting the inHTML option to 1 (i.e. [% d.set(inHTML => 1) %]) will surround the dump with <pre></pre> tags and replace <, and > with < and > so it looks nice in HTML.
Extra method:
dump_template_vars(),
Dumps the template's stash.
Dumpvalue
John Allwine <jallwine86@yahoo.com>
To install Template::Plugin::Dumpvalue, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::Dumpvalue
CPAN shell
perl -MCPAN -e shell install Template::Plugin::Dumpvalue
For more information on module installation, please visit the detailed CPAN module installation guide.