20 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
21 |
use Pod::Find qw/pod_where/; |
use Pod::Find qw/pod_where/; |
22 |
|
|
23 |
sub markup { |
sub as_markup { |
24 |
my $self = shift; |
my $self = shift; |
25 |
my $class = $self->class; |
my $class = $self->class; |
26 |
use Pod::Simple::HTML; |
use Pod::Simple::HTML; |
41 |
$body =~ s!</ul>!</ul></li>!; |
$body =~ s!</ul>!</ul></li>!; |
42 |
$body =~ s!<p></p>!!; |
$body =~ s!<p></p>!!; |
43 |
$body =~ s!__index__!index!g; |
$body =~ s!__index__!index!g; |
44 |
return { |
$self->title( $class ); |
|
title => $class, |
|
|
body => $body, |
|
|
} if wantarray; |
|
45 |
return $body; |
return $body; |
46 |
|
|
47 |
} |
} |
48 |
|
|
49 |
1; |
1; |