package JatsDocTools::TOC::HTML;
use strict;
use warnings;
use base 'JatsDocTools::TOC';
use Data::Dumper;
sub text {
my $text = join("\n", @_, "");
return sub { $text };
}
my $genTail = '';
sub genHeader
{
my ($title, $tip, $class, $open) = @_;
my @tail;
my @head;
push @head, '
',
'',
'',
'
',
''. $title . '
',
'',
'',
'';
push @tail, '
';
if ( $open )
{
push @tail, '';
}
$genTail = text(@tail);
return text (@head);
}
# extra info is tedious to collect -- is done in a subclass or something.
sub extra { '' };
*header = text(''); # text ("
","JATS Core Documentation
",);
*footer = text("\n\n\n