Rhetoric/Theme/BrownStone.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
view
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Rhetoric::Theme::BrownStone;
2 use common::sense;
3 use aliased 'Squatting::H';
4 use Squatting::View;
5 use Method::Signatures::Simple;
6  
7 our $VERSION = '0.01';
8  
9 our $view = Squatting::View->new(
10 'BrownStone',
11 _init => method($include_path) {
12 $self->{tt} = Template->new({
13 INCLUDE_PATH => $include_path,
14 POST_CHOMP => 1,
15 });
16 },
17 layout => method($v, $content) {
18 my $output;
19 $v->{R} = \&Rhetoric::Views::R;
20 $v->{content} = $content;
21 $self->{tt}->process('layout.html', $v, \$output);
22 $output;
23 },
24 _ => method($v) {
25 my $file = "$self->{template}.html";
26 my $output;
27 $v->{R} = \&Rhetoric::Views::R;
28 my $r = $self->{tt}->process($file, $v, \$output);
29 warn $r unless ($r);
30 $output;
31 },
32 );
33  
34 sub view { $view }
35  
36 1;