line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Plugin::URI; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
48869
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
21
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
41
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
412
|
use URI; |
|
1
|
|
|
|
|
4959
|
|
|
1
|
|
|
|
|
22
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
325
|
use parent qw(Template::Plugin); |
|
1
|
|
|
|
|
204
|
|
|
1
|
|
|
|
|
3
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
16
|
|
|
16
|
1
|
84243
|
my (undef, undef, @args) = @_; |
14
|
|
|
|
|
|
|
|
15
|
16
|
100
|
|
|
|
35
|
my %args = (ref($args[-1]) eq 'HASH') ? %{$args[-1]} : (); |
|
1
|
|
|
|
|
3
|
|
16
|
16
|
|
|
|
|
16
|
my $uri = undef; |
17
|
|
|
|
|
|
|
|
18
|
16
|
100
|
|
|
|
20
|
if ($args{new_abs}) { |
19
|
1
|
|
|
|
|
3
|
$uri = URI->new_abs(@args); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
else { |
22
|
15
|
|
|
|
|
35
|
$uri = URI->new(@args); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
16
|
|
|
|
|
7941
|
return $uri; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |