44 |
} else { |
} else { |
45 |
my $o = $class->new( %params ); |
my $o = $class->new( %params ); |
46 |
$o->depends if $o->can('depends'); |
$o->depends if $o->can('depends'); |
47 |
$html = $o->markup; |
if ( $o->can('html') ) { |
48 |
|
warn "## turning over to $o->html"; |
49 |
|
$o->html( $req ); |
50 |
|
} else { |
51 |
|
warn "## using $o->markup"; |
52 |
|
$html = $o->markup; |
53 |
|
warn ">>> markup $class ",length( $html ), " bytes\n"; |
54 |
|
} |
55 |
} |
} |
56 |
|
|
|
warn ">>> markup $class ",length( $html ), " bytes\n"; |
|
57 |
$req->print( $self->page( title => $class, body => $html ) ); |
$req->print( $self->page( title => $class, body => $html ) ); |
58 |
} |
} |
59 |
|
|