- eval { $self->model_class->process($self) };
- if ( my $error = $@ ) {
- $status = $self->call_exception($error, "model");
- if ( $status != OK ) {
- $self->warn("caught model error: $error");
- return $self->debug ?
- $self->view_object->error($self, $error) : ERROR;
+ unless ($self->{template}) {
+ eval { $self->model_class->process($self) };
+ if ( my $error = $@ ) {
+ $status = $self->call_exception($error, "model");
+ if ( $status != OK ) {
+ $self->warn("caught model error: $error");
+ return $self->debug ?
+ $self->view_object->error($self, $error) : ERROR;
+ }