line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Plugin::URI; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
73013
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
28
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
599
|
use URI; |
|
1
|
|
|
|
|
6985
|
|
|
1
|
|
|
|
|
32
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
493
|
use parent qw(Template::Plugin); |
|
1
|
|
|
|
|
291
|
|
|
1
|
|
|
|
|
5
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
16
|
|
|
16
|
1
|
124405
|
my (undef, undef, @args) = @_; |
14
|
|
|
|
|
|
|
|
15
|
16
|
100
|
|
|
|
49
|
my %args = (ref($args[-1]) eq 'HASH') ? %{$args[-1]} : (); |
|
1
|
|
|
|
|
5
|
|
16
|
16
|
|
|
|
|
20
|
my $uri = undef; |
17
|
|
|
|
|
|
|
|
18
|
16
|
100
|
|
|
|
37
|
if ($args{new_abs}) { |
19
|
1
|
|
|
|
|
5
|
$uri = URI->new_abs(@args); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
else { |
22
|
15
|
|
|
|
|
53
|
$uri = URI->new(@args); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
16
|
|
|
|
|
11826
|
return $uri; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |