line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Templ::Tag::Print; |
2
|
1
|
|
|
1
|
|
5
|
use base 'Templ::Tag'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
65
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
19
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
109
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub perl { |
8
|
3
|
|
|
3
|
0
|
7
|
my $self = shift; |
9
|
3
|
|
|
|
|
5
|
my $expr = shift; |
10
|
3
|
|
|
|
|
5
|
my $indent = shift; |
11
|
3
|
|
|
|
|
4
|
my $append = shift; # 'print ' or '$templ_out .= ' |
12
|
|
|
|
|
|
|
|
13
|
3
|
|
|
|
|
7
|
my $out = ''; |
14
|
3
|
50
|
|
|
|
8
|
if ($indent) { $out .= "$append'$indent';\n"; } |
|
0
|
|
|
|
|
0
|
|
15
|
3
|
50
|
|
|
|
8
|
if ( $expr ne '' ) { $out .= "$append$expr;\n"; } |
|
3
|
|
|
|
|
7
|
|
16
|
3
|
|
|
|
|
63
|
return $out; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |