137 |
$o->title( $class ); |
$o->title( $class ); |
138 |
|
|
139 |
$html = $o->page( body => $body ) if $body && !$html; |
$html = $o->page( body => $body ) if $body && !$html; |
140 |
|
$self->content_type( $o->content_type ); |
141 |
|
|
142 |
confess "no html output for $class ", $o->dump unless defined $html; |
confess "no html output for $class ", $o->dump unless defined $html; |
143 |
}; |
}; |
144 |
|
|
154 |
$html = $o->page( body => $self->error( $error ) ); |
$html = $o->page( body => $self->error( $error ) ); |
155 |
} |
} |
156 |
|
|
157 |
warn $self->class, " produced ", length($html), " bytes"; |
warn $self->class, " produced ", length($html), " bytes of ", $self->content_type; |
158 |
|
|
159 |
return $html; |
return $html; |
160 |
} |
} |