package Data::Formatter::Html; use strict; use warnings; our $VERSION = 0.02; use base qw(Data::Formatter); ###################################### # Constructor # ###################################### sub new { my ($class, $outputHandle, %options) = @_; # Maintain a list of handles to output to my $self = bless {__OUTPUT_HANDLE => $outputHandle, __CONTENT_ONLY => $options{CONTENT_ONLY}}, $class; if (!$options{CONTENT_ONLY}) { # Append the HTML preamble $self->_write( '