1 package Maypole::View::TT;
2 use base 'Maypole::View::Base';
3 use Maypole::Constants;
8 my $template = Template->new( { INCLUDE_PATH => [ $self->paths($r) ] } );
10 if ( $template->process( $r->template, { $self->vars($r) }, \$output ) ) {
11 $r->{output} = $output;
15 $r->{error} = $template->error;
24 Maypole::View::TT - A Template Toolkit view class for Maypole
28 BeerDB->config->view("Maypole::View::TT"); # The default anyway
32 This is the default view class for Maypole; it uses the Template Toolkit
33 to fill in templates with the objects produced by Maypole's model classes.
34 Please see the Maypole manual, and in particular, the C<View> chapter,
35 for the template variables available and for a refresher on how template
36 components are resolved.
43 Processes the template and sets the output. See L<Maypole::View::Base>