sub process {
my ($self, $r) = @_;
- my $template = $self->_tt($r):
+ my $template = $self->_tt($r);
my $output;
- $template->process($r->template, { $self->_args($r) }, \$output);
+ $template->process($r->template, { $self->_args($r) }, \$output)
|| $self->error($r, $template->error);
$r->{ar}->content_type("text/html");
$r->{ar}->headers_out->set("Content-Length" => length $output);
sub error {
my ($self, $r, $error) = @_;
- $r->{ar}_>content_type("text/plain");
+ $r->{ar}->content_type("text/plain");
$r->send_http_header;
$r->print($error);
return 500;