line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::HTML::Context; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
74
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
53
|
|
5
|
2
|
|
|
2
|
|
10
|
use base qw(Template::Context); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
3722
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub filter { |
8
|
9
|
|
|
9
|
1
|
954
|
my $self = shift; |
9
|
9
|
|
|
|
|
17
|
my ($name, $args, $alias) = @_; |
10
|
|
|
|
|
|
|
|
11
|
9
|
100
|
|
|
|
31
|
if ( $name eq 'none' ) { |
12
|
|
|
|
|
|
|
return sub { |
13
|
3
|
|
|
3
|
|
17
|
my $value = shift; |
14
|
3
|
50
|
|
|
|
44
|
return $value->plain if UNIVERSAL::isa($value, 'Template::HTML::Variable'); |
15
|
0
|
|
|
|
|
0
|
return $value; |
16
|
3
|
|
|
|
|
20
|
}; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
6
|
|
|
|
|
35
|
my $filter = $self->SUPER::filter(@_); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
return sub { |
22
|
6
|
|
|
6
|
|
25
|
my $value = shift; |
23
|
|
|
|
|
|
|
|
24
|
6
|
100
|
|
|
|
30
|
if ( UNIVERSAL::isa($value, 'Template::HTML::Variable') ) { |
25
|
5
|
|
|
|
|
21
|
return ref($value)->new($filter->($value->plain)); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
|
|
4
|
return $filter->($value); |
29
|
6
|
|
|
|
|
300
|
}; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
__END__ |