line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Caribou::Tags::HTML; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
2
|
|
|
2
|
|
1590
|
$Template::Caribou::Tags::HTML::AUTHORITY = 'cpan:YANICK'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
$Template::Caribou::Tags::HTML::VERSION = '0.2.4'; |
6
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
51
|
|
7
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
39
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
10
|
use Template::Caribou::Utils; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
110
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
BEGIN { |
12
|
2
|
|
|
2
|
|
163
|
@Template::Caribou::Tags::HTML::TAGS = qw/ |
13
|
|
|
|
|
|
|
p html head h1 h2 h3 h4 h5 h6 body emphasis div |
14
|
|
|
|
|
|
|
sup |
15
|
|
|
|
|
|
|
style title span li ol ul i b bold a |
16
|
|
|
|
|
|
|
label link img section article |
17
|
|
|
|
|
|
|
table thead tbody table_row th td |
18
|
|
|
|
|
|
|
fieldset legend form input select option button |
19
|
|
|
|
|
|
|
small |
20
|
|
|
|
|
|
|
textarea |
21
|
|
|
|
|
|
|
/; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
use Template::Caribou::Tags |
25
|
84
|
|
|
|
|
242
|
'render_tag', |
26
|
|
|
|
|
|
|
'attr', |
27
|
|
|
|
|
|
|
mytag => { -as => 'table_row', name => 'tr' }, |
28
|
86
|
|
|
|
|
111
|
map { ( mytag => { -as => $_, name => $_ } ) } |
29
|
2
|
|
|
|
|
9
|
grep { !/table_row/ } |
30
|
2
|
|
|
2
|
|
11
|
@Template::Caribou::Tags::HTML::TAGS; |
|
2
|
|
|
|
|
3
|
|
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
|
|
23
|
use Sub::Exporter -setup => { |
33
|
|
|
|
|
|
|
exports => [ |
34
|
|
|
|
|
|
|
@Template::Caribou::Tags::HTML::TAGS |
35
|
|
|
|
|
|
|
], |
36
|
|
|
|
|
|
|
groups => { default => ':all' }, |
37
|
2
|
|
|
2
|
|
3551
|
}; |
|
2
|
|
|
|
|
4
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=pod |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=encoding UTF-8 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 NAME |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Template::Caribou::Tags::HTML |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 VERSION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
version 0.2.4 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Yanick Champoux <yanick@cpan.org> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Yanick Champoux. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
64
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |