| 1 | #============================================================= -*-Perl-*- | ||||||||||||
| 2 | # | ||||||||||||
| 3 | # Template::Plugin::View | ||||||||||||
| 4 | # | ||||||||||||
| 5 | # DESCRIPTION | ||||||||||||
| 6 | # A user-definable view based on templates. Similar to the concept of | ||||||||||||
| 7 | # a "Skin". | ||||||||||||
| 8 | # | ||||||||||||
| 9 | # AUTHOR | ||||||||||||
| 10 | # Andy Wardley <abw@wardley.org> | ||||||||||||
| 11 | # | ||||||||||||
| 12 | # COPYRIGHT | ||||||||||||
| 13 | # Copyright (C) 2000-2022 Andy Wardley. All Rights Reserved. | ||||||||||||
| 14 | # | ||||||||||||
| 15 | # This module is free software; you can redistribute it and/or | ||||||||||||
| 16 | # modify it under the same terms as Perl itself. | ||||||||||||
| 17 | # | ||||||||||||
| 18 | #============================================================================ | ||||||||||||
| 19 | |||||||||||||
| 20 | package Template::Plugin::View; | ||||||||||||
| 21 | |||||||||||||
| 22 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 23 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 24 | 1 | ▶ | use base 'Template::Plugin'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 25 | |||||||||||||
| 26 | 1 | our $VERSION = '3.106'; | |||||||||||
| 27 | |||||||||||||
| 28 | 1 | ▶ | use Template::View; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 29 | |||||||||||||
| 30 | #------------------------------------------------------------------------ | ||||||||||||
| 31 | # new($context, \%config) | ||||||||||||
| 32 | #------------------------------------------------------------------------ | ||||||||||||
| 33 | |||||||||||||
| 34 | 31 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||
| 35 | 31 | my $class = shift; | |||||||||||
| 36 | 31 | my $context = shift; | |||||||||||
| 37 | 31 | ▶ | my $view = Template::View->new($context, @_) | ||||||||||
|
Condition50%1/2
'Template::View'->new($context, @_) || (return $class->error($Template::View::ERROR))
MC/DC0%0/1
'Template::View'->new($context, @_) || (return $class->error($Template::View::ERROR))
'Template::View'->new($context, @_)
Truth table50%1/2
A
A= 'Template::View'->new($context, @_)
| |||||||||||||
| 38 | || return $class->error($Template::View::ERROR); | ||||||||||||
| 39 | 31 | $view->seal(); | |||||||||||
| 40 | 31 | return $view; | |||||||||||
| 41 | } | ||||||||||||
| 42 | |||||||||||||
| 43 | 1 | 1; | |||||||||||
| 44 | |||||||||||||
| 45 | __END__ | ||||||||||||