blib/lib/Template/Plugin/View.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
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 use strict;
23 use warnings;
24 use base 'Template::Plugin';
25  
26 our $VERSION = '3.105';
27  
28 use Template::View;
29  
30 #------------------------------------------------------------------------
31 # new($context, \%config)
32 #------------------------------------------------------------------------
33  
34 sub new {
35 my $class = shift;
36 my $context = shift;
37 my $view = Template::View->new($context, @_)
38 || return $class->error($Template::View::ERROR);
39 $view->seal();
40 return $view;
41 }
42  
43 1;
44  
45 __END__