Date::Dump::Tree::DHTML - Renders structure as DHTML

NAME

Date::Dump::Tree::DHTML - Renders structure as DHTML

SYNOPSIS

Data::Dump::Tree::DHTML is a Role you can add to a Data::Dump::Tree object.

The role add a dump_dhtml method to the object.

INTERFACE

  • $dumper.dump_dhtml($s1, *%options)

Dump a HTML document with folding capacity.

  • $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,]) ;

Multiple data structures output

You can call dump_dhtml multiple times for different data structures. Each dump will have a separate body, class, style, and identifiers.

Configuration and Overrides

Check 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

Width

The default width is set to 1_000 characters, you can override it with :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.

SEE-ALSO

Data::Dump::Tree

) ; }

Data::Dump::Tree v2.9.4

Render data structures as trees; user definable filters

Authors

  • Nadim Khemir
  • Steve Roe

License

Artistic-2.0

Dependencies

Terminal::Print

Test Dependencies

Provides

  • DDT
  • DDTR::ColorBlobLevel
  • Data::Dump::Tree
  • Data::Dump::Tree::Colorizer
  • Data::Dump::Tree::DHTML
  • Data::Dump::Tree::Ddt
  • Data::Dump::Tree::DescribeBaseObjects
  • Data::Dump::Tree::Diff
  • Data::Dump::Tree::Enums
  • Data::Dump::Tree::ExtraRoles
  • Data::Dump::Tree::Foldable
  • Data::Dump::Tree::Horizontal
  • Data::Dump::Tree::LayHorizontal
  • Data::Dump::Tree::MultiColumns
  • Data::Dump::Tree::TerminalFoldable

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.