File Coverage

blib/lib/Orze/Drivers/Template.pm
Criterion Covered Total %
statement 12 23 52.1
branch 0 2 0.0
condition n/a
subroutine 4 5 80.0
pod 1 1 100.0
total 17 31 54.8


line stmt bran cond sub pod time code
1             package Orze::Drivers::Template;
2              
3 1     1   4337 use strict;
  1         2  
  1         37  
4 1     1   5 use warnings;
  1         2  
  1         27  
5              
6 1     1   8257 use Template;
  1         57613  
  1         34  
7              
8 1     1   11 use base "Orze::Drivers";
  1         3  
  1         686  
9              
10             =head1 NAME
11              
12             Orze::Drivers::Template - Create a page using the Template module
13              
14             =head1 DESCRIPTION
15              
16             This driver uses the famous Template module to create pages. It process
17             the given template using all the variables of the page as its own
18             variables.
19              
20             It takes care of the following attributes:
21              
22             =over
23              
24             =item template
25              
26             The template that will be used. Notice that the default value is "index".
27              
28             =back
29              
30             All the templates must be put in the C directory.
31             The C directory will be used for all the includes
32             defined in the template file.
33              
34             The new file will be put in C according the current
35             page path and name.
36              
37             =head1 EXAMPLE
38              
39            
40             Homepage
41             Hello world
42            
43              
44             =head1 SEE ALSO
45              
46             Lookt at L