line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Tag::Comment; |
2
|
3
|
|
|
3
|
|
1261
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
83
|
|
3
|
3
|
|
|
3
|
|
16
|
use utf8; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
17
|
|
4
|
3
|
|
|
3
|
|
74
|
use warnings FATAL => 'all'; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
116
|
|
5
|
3
|
|
|
3
|
|
15
|
use parent 'DTL::Fast::Tag'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
16
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$DTL::Fast::TAG_HANDLERS{comment} = __PACKAGE__; |
8
|
|
|
|
|
|
|
|
9
|
3
|
|
|
3
|
|
184
|
use DTL::Fast::Text; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
422
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
#@Override |
12
|
0
|
|
|
0
|
0
|
0
|
sub get_close_tag {return 'endcomment';} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
#@Override |
15
|
|
|
|
|
|
|
sub parse_next_chunk |
16
|
|
|
|
|
|
|
{ |
17
|
80
|
|
|
80
|
0
|
441
|
my $self = shift; |
18
|
80
|
|
|
|
|
101
|
my $chunk = shift @{$self->{raw_chunks}}; |
|
80
|
|
|
|
|
165
|
|
19
|
80
|
|
100
|
|
|
386
|
my $chunk_lines = scalar (my @tmp = $chunk =~ /(\n)/g ) || 0; |
20
|
|
|
|
|
|
|
|
21
|
80
|
100
|
|
|
|
255
|
if ($chunk =~ /^\{\%\s*endcomment\s*\%\}$/six) |
22
|
|
|
|
|
|
|
{ |
23
|
16
|
|
|
|
|
38
|
$self->{raw_chunks} = [ ]; # this stops parsing |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
80
|
|
|
|
|
121
|
$DTL::Fast::Template::CURRENT_TEMPLATE_LINE += $chunk_lines; |
27
|
|
|
|
|
|
|
|
28
|
80
|
|
|
|
|
220
|
return; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
#@Override |
32
|
|
|
|
|
|
|
sub render |
33
|
|
|
|
|
|
|
{ |
34
|
10
|
|
|
10
|
0
|
30
|
return ''; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |