use Template::Timer;
use NEXT;
-our $VERSION = '0.08';
+our $VERSION = '0.10';
__PACKAGE__->mk_accessors('template');
sub process {
my ( $self, $c ) = @_;
- $c->res->headers->content_type('text/html;charset=utf8');
+ $c->res->headers->content_type('text/html; charset=utf-8')
+ unless $c->res->headers->content_type();
my $output;
my $name = $c->stash->{template} || $c->req->match;
unless ($name) {
my $error = $self->template->error;
$error = qq/Couldn't render template "$error"/;
$c->log->error($error);
- $c->errors($error);
+ $c->error($error);
}
$c->res->output($output);
return 1;