X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FView%2FTT.pm;h=9142f3ebe51bdbda78ffbde8f2a37e5de11f9f50;hb=5ba93a09518403ae28e8a71b5299e2458a6dfa0b;hp=0e8d89fbc1b2476f992c7aee9c57a1f7eafd3ea3;hpb=4a54e35a96e2863e809fddbf22450d60745661f1;p=maypole.git diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm index 0e8d89f..9142f3e 100644 --- a/lib/Maypole/View/TT.pm +++ b/lib/Maypole/View/TT.pm @@ -4,13 +4,14 @@ use Maypole::Constants; use Template; sub template { - my ($self, $r) = @_; - my $template = Template->new({ INCLUDE_PATH => [ $self->paths($r) ]}); + my ( $self, $r ) = @_; + my $template = Template->new( { INCLUDE_PATH => [ $self->paths($r) ] } ); my $output; - if ($template->process($r->template, { $self->vars($r) }, \$output)) { + if ( $template->process( $r->template, { $self->vars($r) }, \$output ) ) { $r->{output} = $output; return OK; - } else { + } + else { $r->{error} = $template->error; return ERROR; } @@ -39,3 +40,4 @@ components are resolved. Simon Cozens =cut +