line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Template::Caribou::Tags::Bootstrap; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
1
|
|
|
1
|
|
20322
|
$Template::Caribou::Tags::Bootstrap::AUTHORITY = 'cpan:YANICK'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
$Template::Caribou::Tags::Bootstrap::VERSION = '0.2.4'; |
6
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
32
|
|
7
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
55
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
|
|
13
|
use Sub::Exporter -setup => { |
10
|
|
|
|
|
|
|
exports => [ |
11
|
|
|
|
|
|
|
row => \&_row_tag, |
12
|
|
|
|
|
|
|
span => \&_span_tag, |
13
|
|
|
|
|
|
|
], |
14
|
|
|
|
|
|
|
groups => { default => ':all' }, |
15
|
1
|
|
|
1
|
|
913
|
}; |
|
1
|
|
|
|
|
12890
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
use Template::Caribou::Tags |
18
|
1
|
|
|
|
|
8
|
'render_tag', |
19
|
1
|
|
|
1
|
|
878
|
'attr'; |
|
1
|
|
|
|
|
4
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub _row_tag { |
22
|
1
|
|
|
1
|
|
113
|
my( undef, undef, $arg ) = @_; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
my $groom = sub { |
26
|
0
|
|
|
0
|
|
0
|
my( $attr ) = @_; |
27
|
0
|
|
|
|
|
0
|
$attr->{class} .= ' row'; |
28
|
0
|
0
|
|
|
|
0
|
$attr->{class} .= '-fluid' if $arg->{fluid}; |
29
|
1
|
|
|
|
|
5
|
}; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
return sub(&) { |
32
|
0
|
|
|
0
|
|
|
render_tag( 'div', shift, $groom ); |
33
|
|
|
|
|
|
|
} |
34
|
1
|
|
|
|
|
6
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub _span_tag { |
37
|
0
|
|
|
0
|
|
|
my( undef, undef, $arg ) = @_; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
my $groom = sub { |
40
|
0
|
|
|
0
|
|
|
my( $attr ) = @_; |
41
|
0
|
|
0
|
|
|
|
$attr->{class} .= ' span' . $arg->{span} || 1; |
42
|
0
|
0
|
|
|
|
|
$attr->{class} .= ' offset' . $arg->{offset} if $arg->{offset}; |
43
|
0
|
|
|
|
|
|
}; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
return sub(&) { |
46
|
0
|
|
|
0
|
|
|
render_tag( 'div', shift, $groom ); |
47
|
|
|
|
|
|
|
} |
48
|
0
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
1; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__END__ |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=pod |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=encoding UTF-8 |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 NAME |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Template::Caribou::Tags::Bootstrap |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 VERSION |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
version 0.2.4 |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 AUTHOR |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Yanick Champoux <yanick@cpan.org> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Yanick Champoux. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
77
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |