line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
$Devel::IPerl::Display::IFrame::VERSION = '0.012'; |
2
|
|
|
|
|
|
|
use strict; |
3
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
55
|
|
4
|
2
|
|
|
2
|
|
9
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
42
|
|
5
|
|
|
|
|
|
|
use Moo; |
6
|
2
|
|
|
2
|
|
9
|
with qw(Devel::IPerl::Display::Role::Displayable Devel::IPerl::Display::Role::Source); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
9
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has [ qw[width height] ] => ( is => 'rw', predicate => 1 ); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my ($self) = @_; |
11
|
|
|
|
|
|
|
return unless $self->uri; |
12
|
0
|
|
|
0
|
0
|
|
my $html = <<"HTML"; |
13
|
0
|
0
|
|
|
|
|
<iframe |
14
|
0
|
|
|
|
|
|
@{[ $self->has_width ? (qq|width="@{[$self->width]}"|) : "" ]} |
15
|
|
|
|
|
|
|
@{[ $self->has_height ? (qq|height="@{[$self->height]}"|): "" ]} |
16
|
0
|
0
|
|
|
|
|
src="@{[$self->uri]}" |
|
0
|
|
|
|
|
|
|
17
|
0
|
0
|
|
|
|
|
frameborder="0" |
|
0
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
allowfullscreen |
19
|
|
|
|
|
|
|
></iframe> |
20
|
|
|
|
|
|
|
HTML |
21
|
|
|
|
|
|
|
return { |
22
|
|
|
|
|
|
|
"text/html" => $html, |
23
|
|
|
|
|
|
|
}; |
24
|
0
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding UTF-8 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Devel::IPerl::Display::IFrame |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 VERSION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
version 0.012 |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 AUTHOR |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Zakariyya Mughal <zmughal@cpan.org> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Zakariyya Mughal. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
50
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |