$_->detach for $tree->look_down(static => $args{static} ? 'no' : 'yes');
$_->attr('static', undef) for $tree->look_down(sub {$_[0]->attr('static')});
$_->attr('smap', undef) for $tree->look_down(sub {$_[0]->attr('smap')});
- $tree->as_HTML;
+ $tree->as_HTML(undef, undef, $optional_end_tags);
}
+my $logo = read_file 'mclogo.svg';
+$logo =~ y/\n//d;
+$logo =~ s/(\s+)/ /g;
+
sub process_skel {
my ($tree, %args) = @_;
+ $tree->fid('logo')->replace_with(HTML::Element::Library::super_literal $logo);
$tree->content_handler(
title => $args{title},
content => literal $args{meat});