NAME Tags::HTML::Page::End - Tags helper for HTML page end. SYNOPSIS use Tags::HTML::Page::End; my $obj = Tags::HTML::Page::End->new(%params); $obj->process; METHODS "new" my $obj = Tags::HTML::Page::End->new(%params); Constructor. * "tags" 'Tags::Output' object. It's required. Default value is undef. "process" $obj->process; Process Tags structure for output. Returns undef. ERRORS new(): Parameter 'tags' must be a 'Tags::Output::*' class. From Class::Utils::set_params(): Unknown parameter '%s'. EXAMPLE use strict; use warnings; use CSS::Struct::Output::Indent; use Tags::HTML::Page::Begin; use Tags::HTML::Page::End; use Tags::Output::Indent; # Object. my $tags = Tags::Output::Indent->new( 'preserved' => ['style'], ); my $css = CSS::Struct::Output::Indent->new; my $begin = Tags::HTML::Page::Begin->new( 'css' => $css, 'tags' => $tags, ); my $end = Tags::HTML::Page::End->new( 'tags' => $tags, ); # Process page $begin->process_css; $begin->process; $tags->put( ['b', 'div'], ['d', 'Hello world!'], ['e', 'div'], ); $end->process; # Print out. print $tags->flush; # Output: # # #
# # #