line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Simple::Role::XHTML::WithLinkMappings; |
2
|
1
|
|
|
1
|
|
82935
|
use Moo::Role; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
6
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
our $VERSION = '0.003000'; |
5
|
|
|
|
|
|
|
$VERSION =~ tr/_//d; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
297
|
use HTML::Entities qw(decode_entities encode_entities); |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
82
|
|
8
|
1
|
|
|
1
|
|
360
|
use URL::Encode qw(url_encode_utf8); |
|
1
|
|
|
|
|
4036
|
|
|
1
|
|
|
|
|
45
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
362
|
use namespace::clean; |
|
1
|
|
|
|
|
9105
|
|
|
1
|
|
|
|
|
5
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has link_mappings => ( is => 'rw' ); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
around resolve_pod_page_link => sub { |
15
|
|
|
|
|
|
|
my $orig = shift; |
16
|
|
|
|
|
|
|
my $self = shift; |
17
|
|
|
|
|
|
|
my $module = shift; |
18
|
|
|
|
|
|
|
if (defined $module) { |
19
|
|
|
|
|
|
|
my $link_map = $self->link_mappings || {}; |
20
|
|
|
|
|
|
|
my $link = $link_map->{$module}; |
21
|
|
|
|
|
|
|
$module = $link |
22
|
|
|
|
|
|
|
if defined $link; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
$self->$orig($module, @_); |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
__END__ |