line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Tag::Comment; |
2
|
3
|
|
|
3
|
|
1225
|
use strict; use utf8; use warnings FATAL => 'all'; |
|
3
|
|
|
3
|
|
3
|
|
|
3
|
|
|
3
|
|
65
|
|
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
14
|
|
|
3
|
|
|
|
|
49
|
|
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
88
|
|
3
|
3
|
|
|
3
|
|
9
|
use parent 'DTL::Fast::Tag'; |
|
3
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
13
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
$DTL::Fast::TAG_HANDLERS{'comment'} = __PACKAGE__; |
6
|
|
|
|
|
|
|
|
7
|
3
|
|
|
3
|
|
166
|
use DTL::Fast::Text; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
461
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
#@Override |
10
|
0
|
|
|
0
|
0
|
0
|
sub get_close_tag{return 'endcomment';} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
#@Override |
13
|
|
|
|
|
|
|
sub parse_next_chunk |
14
|
|
|
|
|
|
|
{ |
15
|
80
|
|
|
80
|
0
|
69
|
my $self = shift; |
16
|
80
|
|
|
|
|
56
|
my $chunk = shift @{$self->{'raw_chunks'}}; |
|
80
|
|
|
|
|
109
|
|
17
|
80
|
|
100
|
|
|
336
|
my $chunk_lines = scalar (my @tmp = $chunk =~ /(\n)/g ) || 0; |
18
|
|
|
|
|
|
|
|
19
|
80
|
100
|
|
|
|
170
|
if( $chunk =~ /^\{\%\s*endcomment\s*\%\}$/six ) |
20
|
|
|
|
|
|
|
{ |
21
|
16
|
|
|
|
|
31
|
$self->{'raw_chunks'} = []; # this stops parsing |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
80
|
|
|
|
|
67
|
$DTL::Fast::Template::CURRENT_TEMPLATE_LINE += $chunk_lines; |
25
|
|
|
|
|
|
|
|
26
|
80
|
|
|
|
|
177
|
return; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
#@Override |
30
|
|
|
|
|
|
|
sub render |
31
|
|
|
|
|
|
|
{ |
32
|
10
|
|
|
10
|
0
|
27
|
return ''; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |