-sub do_it {
- my ($self, $r) = @_;
- my $template = Template->new({ INCLUDE_PATH => [ $self->paths($r) ]});
- my $output;
- if ($template->process($r->template, { $self->args($r) }, \$output)) {
- $r->{output} = $output;
- return 1;
- } else {
- $r->{error} = $template->error;
- }
-
-}
-