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