1Template::Plugin::DumpeUrs(e3r)Contributed Perl DocumentTaetmipolnate::Plugin::Dumper(3)
2
3
4

NAME

6       Template::Plugin::Dumper - Plugin interface to Data::Dumper
7

SYNOPSIS

9           [% USE Dumper %]
10
11           [% Dumper.dump(variable) %]
12           [% Dumper.dump_html(variable) %]
13

DESCRIPTION

15       This is a very simple Template Toolkit Plugin Interface to the
16       Data::Dumper module.  A "Dumper" object will be instantiated via the
17       following directive:
18
19           [% USE Dumper %]
20
21       As a standard plugin, you can also specify its name in lower case:
22
23           [% USE dumper %]
24
25       The "Data::Dumper" "Pad", "Indent" and "Varname" options are supported
26       as constructor arguments to affect the output generated.  See
27       Data::Dumper for further details.
28
29           [% USE dumper(Indent=0, Pad="<br>") %]
30
31       These options can also be specified in lower case.
32
33           [% USE dumper(indent=0, pad="<br>") %]
34

METHODS

36       There are two methods supported by the "Dumper" object.  Each will
37       output into the template the contents of the variables passed to the
38       object method.
39
40   dump()
41       Generates a raw text dump of the data structure(s) passed
42
43           [% USE Dumper %]
44           [% Dumper.dump(myvar) %]
45           [% Dumper.dump(myvar, yourvar) %]
46
47   dump_html()
48       Generates a dump of the data structures, as per dump(), but with the
49       characters <, > and & converted to their equivalent HTML entities and
50       newlines converted to <br>.
51
52           [% USE Dumper %]
53           [% Dumper.dump_html(myvar) %]
54

AUTHOR

56       Simon Matthews <sam@tt2.org>
57
59       Copyright (C) 2000 Simon Matthews.  All Rights Reserved.
60
61       This module is free software; you can redistribute it and/or modify it
62       under the same terms as Perl itself.
63

SEE ALSO

65       Template::Plugin, Data::Dumper
66
67
68
69perl v5.36.0                      2023-01-20       Template::Plugin::Dumper(3)
Impressum