/
DHTML.pod
72 lines (39 loc) · 1.53 KB
/
DHTML.pod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
=begin pod
=NAME
Date::Dump::Tree::DHTML - Renders structure as DHTML
=SYNOPSIS
=DESCRIPTION
Data::Dump::Tree::DHTML is a Role you can add to a Data::Dump::Tree object.
The role add a B<dump_dhtml> method to the object.
=INTERFACE
=item $dumper.dump_dhtml($s1, *%options)
Dump a HTML document with folding capacity.
=item $dumper.get_dhtml_dump($s1, *%options)
Returns a HTML document with folding capacity on $*OUT.
=USAGE
my $d = Data::Dump::Tree.new(title => 'test', does => ( DDTR::DHTML,),) ;
class Tomato{ has Int $seeds }
$d.dump_dhtml([ 1, { key => { sk1 => 'v1', sk2 => 'v2'},}, Tomato,]) ;
=head2 Multiple data structures output
You can call I<dump_dhtml> multiple times for different data structures. Each
dump will have a separate body, class, style, and identifiers.
=head2 Configuration and Overrides
Check B<Data::Dump::Tree> for the options that you can pass the dumper. Not all
the standard configurations can be used.
Generally:
- all data manipulation done in filters work as the DHTML is generated after the
filters are called
- data added to @renderings in the filters is not displayed in the dhtml
- all coloring and format options are ignored
=head3 Width
The default width is set to 1_000 characters, you can override it with I<:width>.
=AUTHOR
Nadim ibn hamouda el Khemir
https://github.com/nkh
=LICENSE
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl6 itself.
=head1 SEE-ALSO
Data::Dump::Tree
=end pod
DOC INIT {use Pod::To::Text ; pod2text($=pod) ; }