line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Template::Extension::ObjBase; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
$VERSION = "0.02"; |
4
|
0
|
|
|
0
|
0
|
0
|
sub Version { $VERSION; } |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
610
|
use Carp; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
74
|
|
7
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
152
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
1
|
|
|
1
|
0
|
568
|
my $class = shift; |
11
|
1
|
|
|
|
|
3
|
my $self = {}; |
12
|
1
|
|
|
|
|
7
|
bless $self, $class; |
13
|
1
|
|
|
|
|
4
|
return $self; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub init { |
18
|
1
|
|
|
1
|
0
|
3
|
my $self = shift; |
19
|
1
|
|
|
|
|
5
|
my $parent = shift; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub push_filter { |
23
|
1
|
|
|
1
|
0
|
3
|
my $self = shift; |
24
|
1
|
|
|
|
|
3
|
my $parent = shift; |
25
|
1
|
|
|
|
|
2
|
push @{$parent->{filter_internal}},@{$self->_get_filter()}; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
4
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub _get_filter { |
29
|
1
|
|
|
1
|
|
2
|
my $self = shift; |
30
|
1
|
|
|
|
|
2
|
my @ret ; |
31
|
1
|
|
|
1
|
|
5
|
no strict "refs"; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
87
|
|
32
|
1
|
|
|
|
|
3
|
push @ret, \&{ref($self) . '::filter'}; |
|
1
|
|
|
|
|
8
|
|
33
|
1
|
|
|
|
|
5
|
return \@ret; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub filter { |
37
|
2
|
|
|
2
|
0
|
180
|
my $template = shift; |
38
|
2
|
|
|
|
|
6
|
return $$template; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |