| 1 | package DTL::Fast::Tag::Extends; | ||||||||||||||||||||||||||||||
| 2 | 1 | ▶ | use strict; use utf8; use warnings FATAL => 'all'; | ||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use parent 'DTL::Fast::Tag::Simple'; | ||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||||
| 5 | 1 | $DTL::Fast::TAG_HANDLERS{'extends'} = __PACKAGE__; | |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||
| 7 | 1 | ▶ | use DTL::Fast::Template; | ||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||
| 9 | #@Override | ||||||||||||||||||||||||||||||
| 10 | sub parse_parameters | ||||||||||||||||||||||||||||||
| 11 | { | ||||||||||||||||||||||||||||||
| 12 | 14 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||
|
Subroutine
parse_parameters: called CC=5 SCAR=20.1
Pod
undocumented
| |||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||
| 14 | die $self->get_parse_error("parent template was not specified") | ||||||||||||||||||||||||||||||
| 15 | 14 | ▶ | if not $self->{'parameter'}; | ||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||
| 17 | die $self->get_parse_error( | ||||||||||||||||||||||||||||||
| 18 | sprintf("Multiple extends specified in the template:\n\%s\n\%s\n" | ||||||||||||||||||||||||||||||
| 19 | , $DTL::Fast::Template::CURRENT_TEMPLATE->{'extends'}->{'original'} // 'undef' | ||||||||||||||||||||||||||||||
| 20 | , $self->{'parameter'} // 'undef' | ||||||||||||||||||||||||||||||
| 21 | ) | ||||||||||||||||||||||||||||||
| 22 | 14 | ▶ | ) if $DTL::Fast::Template::CURRENT_TEMPLATE->{'extends'}; | ||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/4
$DTL::Fast::Template::CURRENT_TEMPLATE->{"extends"}{"original"} // "undef"
$self->{"parameter"} // "undef"
MC/DC0%0/1
$DTL::Fast::Template::CURRENT_TEMPLATE->{"extends"}{"original"} // "undef"
$DTL::Fast::Template::CURRENT_TEMPLATE->{"extends"}{"original"}
MC/DC0%0/1
$self->{"parameter"} // "undef"
$self->{"parameter"}
Truth table0%0/2
A
A= $DTL::Fast::Template::CURRENT_TEMPLATE->{"extends"}{"original"}
Truth table0%0/2
A
A= $self->{"parameter"}
| |||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||
| 24 | 14 | $DTL::Fast::Template::CURRENT_TEMPLATE->{'extends'} = DTL::Fast::Variable->new($self->{'parameter'}); | |||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||
| 26 | 14 | return; | |||||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||
| 29 | 1 | 1; | |||||||||||||||||||||||||||||