| 1 | package Devel::IPerl::Display::CSS; | ||||||||||||||
| 2 | 2 | $Devel::IPerl::Display::CSS::VERSION = '0.012'; | |||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 5 | |||||||||||||||
| 6 | 2 | ▶ | use Moo; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 7 | 2 | with qw(Devel::IPerl::Display::Role::Displayable Devel::IPerl::Display::Role::Source); | |||||||||||||
| 8 | |||||||||||||||
| 9 | 0 | ▶ | sub _build_mimetype { 'text/css' } | ||||||||||||
|
Subroutine
_build_mimetype: not called CC=1 SCAR=6.9
| |||||||||||||||
| 10 | 2 | ▶ | sub iperl_data_representations { | ||||||||||||
|
Subroutine
iperl_data_representations: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||
| 11 | 2 | my ($self) = @_; | |||||||||||||
| 12 | 2 | my $html; | |||||||||||||
| 13 | 2 | ▶ | if( $self->uri ) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 14 | 1 | $html = <<"HTML"; | |||||||||||||
| 15 | 1 | <link rel="stylesheet" href="@{[$self->uri]}" type="text/css"> | |||||||||||||
| 16 | HTML | ||||||||||||||
| 17 | } elsif( $self->bytestream ) { | ||||||||||||||
| 18 | 1 | $html = <<"HTML"; | |||||||||||||
| 19 | <stylesheet type="text/css"> | ||||||||||||||
| 20 | 1 | @{[ $self->bytestream ]} | |||||||||||||
| 21 | </stylesheet> | ||||||||||||||
| 22 | HTML | ||||||||||||||
| 23 | } | ||||||||||||||
| 24 | return { | ||||||||||||||
| 25 | 2 | "text/html" => $html, | |||||||||||||
| 26 | }; | ||||||||||||||
| 27 | } | ||||||||||||||
| 28 | |||||||||||||||
| 29 | 2 | 1; | |||||||||||||
| 30 | |||||||||||||||
| 31 | __END__ | ||||||||||||||