John Allwine > Template-Plugin-Dumpvalue > Template::Plugin::Dumpvalue

Download:
Template-Plugin-Dumpvalue-1.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.01   Source  

NAME ^

Template::Plugin::Dumpvalue - Interface to Dumpvalue through the Template Toolkit

SYNOPSIS ^

 [% USE d = Dumpvalue %]
 [% hash = {
      a => 1,
      b => 2,
      c => 3
    } %]
 [% d.dumpValue(hash) %]
 [% d.dump_template_vars() %]

DESCRIPTION ^

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 &lt; and &gt; so it looks nice in HTML.

Extra method:

dump_template_vars(),

Dumps the template's stash.

SEE ALSO ^

Dumpvalue

AUTHOR ^

John Allwine <jallwine86@yahoo.com>

syntax highlighting: