103 |
return $out; |
return $out; |
104 |
} |
} |
105 |
|
|
106 |
=head1 OUTPUT GENERATION |
sub as_markup { |
|
|
|
|
=head2 markup |
|
|
|
|
|
$o->markup; |
|
|
|
|
|
=cut |
|
|
|
|
|
sub markup { |
|
107 |
my ( $self ) = @_; |
my ( $self ) = @_; |
108 |
|
|
109 |
$self->add_head( 'static/introspect.css' ); |
$self->add_head( 'static/introspect.css' ); |
203 |
} |
} |
204 |
$table .= qq|</table>|; |
$table .= qq|</table>|; |
205 |
|
|
206 |
my $pod = Frey::Pod->new( class => $class )->markup; |
my $pod = Frey::Pod->new( class => $class )->as_markup; |
207 |
$pod = $pod->{body} if ref($pod); |
$pod = $pod->{body} if ref($pod); |
208 |
|
|
209 |
my $path = $self->class_path( $class ); |
my $path = $self->class_path( $class ); |
236 |
); |
); |
237 |
$runnable = " runnable: $runnable" if $runnable; |
$runnable = " runnable: $runnable" if $runnable; |
238 |
|
|
239 |
my $html = { |
$self->title( $class ); |
|
title => $class, |
|
|
body => join("\n", |
|
|
qq|<h1>$class</h1>|, |
|
|
qq|<div class="frey-introspect">$superclasses\n$roles\n$runnable\n|, |
|
|
$pod ? qq|<a class="frey-skip" href="#___top" title="Skip to POD" >pod</a>| : '', |
|
|
$source ? qq|<a class="frey-skip" href="#source" title="Skip to source" >source</a>| : '', |
|
|
qq|$table\n$pod\n</div>\n|, |
|
|
qq|<h1>Source</h1><a name="source"></a><div class="frey-source">$source</div>|, |
|
|
), |
|
|
}; |
|
240 |
|
|
241 |
return $html; |
return join("\n", |
242 |
|
qq|<h1>$class</h1>|, |
243 |
|
qq|<div class="frey-introspect">$superclasses\n$roles\n$runnable\n|, |
244 |
|
$pod ? qq|<a class="frey-skip" href="#___top" title="Skip to POD" >pod</a>| : '', |
245 |
|
$source ? qq|<a class="frey-skip" href="#source" title="Skip to source" >source</a>| : '', |
246 |
|
qq|$table\n$pod\n</div>\n|, |
247 |
|
qq|<h1>Source</h1><a name="source"></a><div class="frey-source">$source</div>|, |
248 |
|
); |
249 |
} |
} |
250 |
|
|
251 |
=head1 SEE ALSO |
=head1 SEE ALSO |