line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Form::Factory::Interface::HTML::Widget::Div; |
2
|
|
|
|
|
|
|
$Form::Factory::Interface::HTML::Widget::Div::VERSION = '0.022'; |
3
|
1
|
|
|
1
|
|
4
|
use Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends qw( Form::Factory::Interface::HTML::Widget::Element ); |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: HTML interface widget helper |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has '+tag_name' => ( |
11
|
|
|
|
|
|
|
default => 'div', |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has widgets => ( |
15
|
|
|
|
|
|
|
is => 'ro', |
16
|
|
|
|
|
|
|
isa => 'ArrayRef', |
17
|
|
|
|
|
|
|
required => 1, |
18
|
|
|
|
|
|
|
default => sub { [] }, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
0
|
0
|
sub has_content { 1 } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub render_widgets { |
24
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
25
|
0
|
|
|
|
|
0
|
my $content = ''; |
26
|
0
|
|
|
|
|
0
|
for my $widget (@{ $self->widgets }) { |
|
0
|
|
|
|
|
0
|
|
27
|
0
|
|
|
|
|
0
|
$content .= $widget->render; |
28
|
|
|
|
|
|
|
} |
29
|
0
|
|
|
|
|
0
|
return $content; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
override render => sub { |
33
|
|
|
|
|
|
|
my $self = shift; |
34
|
|
|
|
|
|
|
return super() . $self->render_widgets; |
35
|
|
|
|
|
|
|
}; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub consume_control { |
38
|
131
|
|
|
131
|
0
|
149
|
my $self = shift; |
39
|
131
|
|
|
|
|
147
|
my %args_accumulator; |
40
|
|
|
|
|
|
|
|
41
|
131
|
100
|
|
|
|
4277
|
%args_accumulator = (%args_accumulator, %{ $_->consume(@_) || {} }) |
|
395
|
|
|
|
|
1031
|
|
42
|
131
|
|
|
|
|
133
|
for @{ $self->widgets }; |
43
|
|
|
|
|
|
|
|
44
|
131
|
|
|
|
|
406
|
return \%args_accumulator; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=pod |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=encoding UTF-8 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 NAME |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Form::Factory::Interface::HTML::Widget::Div - HTML interface widget helper |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 VERSION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
version 0.022 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 DESCRIPTION |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Move along. Nothing to see here. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=for Pod::Coverage .* |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 AUTHOR |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Andrew Sterling Hanenkamp <hanenkamp@cpan.org> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Qubling Software LLC. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
79
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=cut |