22 |
required => 1, |
required => 1, |
23 |
); |
); |
24 |
|
|
|
has 'path' => ( |
|
|
is => 'rw', |
|
|
); |
|
|
|
|
25 |
=head2 joose |
=head2 joose |
26 |
|
|
27 |
my $js = $o->joose; |
my $js = $o->joose; |
94 |
my $path = "static/blib/$filename"; |
my $path = "static/blib/$filename"; |
95 |
write_file( $path, $out ); |
write_file( $path, $out ); |
96 |
warn "# created $path\n"; |
warn "# created $path\n"; |
|
$self->path( $path ); |
|
97 |
|
|
98 |
return $out; |
return $out; |
99 |
} |
} |
100 |
|
|
101 |
=head1 OUTPUT GENERATION |
sub as_markup { |
|
|
|
|
=head2 markup |
|
|
|
|
|
$o->markup; |
|
|
|
|
|
=cut |
|
|
|
|
|
sub markup { |
|
102 |
my ( $self ) = @_; |
my ( $self ) = @_; |
103 |
|
|
104 |
$self->add_head( 'static/introspect.css' ); |
$self->add_head( 'static/introspect.css' ); |
198 |
} |
} |
199 |
$table .= qq|</table>|; |
$table .= qq|</table>|; |
200 |
|
|
201 |
my $pod = Frey::Pod->new( class => $class )->markup; |
my $pod = Frey::Pod->new( class => $class )->as_markup; |
202 |
$pod = $pod->{body} if ref($pod); |
$pod = $pod->{body} if ref($pod); |
203 |
|
|
204 |
my $path = $self->class_path( $class ); |
my $path = $self->class_path( $class ); |
224 |
# $source =~ s{</body.*$}{}s; |
# $source =~ s{</body.*$}{}s; |
225 |
|
|
226 |
|
|
|
use Frey::Run; |
|
|
my $class_method = $self->class_methods( $class ); |
|
227 |
my $runnable = join("\n", |
my $runnable = join("\n", |
228 |
map { $class_method->{$_} ? qq|<a href="/$class/$_">$_</a>| : '' } grep { $class->can($_) } Frey::Run->runnable |
map { |
229 |
|
qq|<a href="/$class/$_">$_</a>| |
230 |
|
} $self->class_runnable( $class ) |
231 |
); |
); |
232 |
$runnable = " runnable: $runnable" if $runnable; |
$runnable = " runnable: $runnable" if $runnable; |
233 |
|
|