line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Template::Declare::Anon; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
41830
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
5
|
use base qw/Exporter/; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
153
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = "0.03"; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
1337
|
use Template::Declare (); |
|
1
|
|
|
|
|
14245
|
|
|
1
|
|
|
|
|
24
|
|
13
|
1
|
|
|
1
|
|
1044
|
use Template::Declare::Tags (); |
|
1
|
|
|
|
|
10738
|
|
|
1
|
|
|
|
|
48
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
9
|
use overload '""' => \&process; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
6
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our @EXPORT = qw( anon_template process ); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub anon_template (&) { |
20
|
2
|
|
|
2
|
0
|
24
|
my $self = shift; |
21
|
2
|
|
|
|
|
10
|
bless $self, __PACKAGE__; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub process { |
25
|
2
|
|
|
2
|
0
|
11
|
my ( $template, @args ) = @_; |
26
|
|
|
|
|
|
|
|
27
|
2
|
|
|
|
|
7
|
local %Template::Declare::Tags::ELEMENT_ID_CACHE = (); |
28
|
2
|
|
50
|
|
|
14
|
local $Template::Declare::Tags::self = $Template::Declare::Tags::self || "Template::Declare"; |
29
|
|
|
|
|
|
|
|
30
|
2
|
|
|
|
|
16
|
Template::Declare->new_buffer_frame; |
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
|
|
139
|
&$template($Template::Declare::Tags::self, @args); |
33
|
|
|
|
|
|
|
|
34
|
2
|
|
|
|
|
1652
|
my $output = Template::Declare->buffer->data; |
35
|
|
|
|
|
|
|
|
36
|
2
|
|
|
|
|
51
|
Template::Declare->end_buffer_frame; |
37
|
|
|
|
|
|
|
|
38
|
2
|
|
|
|
|
85
|
return $output; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__PACKAGE__; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |