--- trunk/lib/Frey/ClassBrowser.pm 2008/09/13 15:31:54 187 +++ trunk/lib/Frey/ClassBrowser.pm 2008/11/01 00:14:05 223 @@ -2,9 +2,9 @@ use Moose; extends 'Frey'; -with 'Frey::Web'; use Frey::ClassLoader; +use Frey::Run; our $markup; @@ -23,18 +23,13 @@ } my @inspect; push @inspect, qq|collection| if $package->can('collection_table'); - push @inspect, qq|markup| if $package->can('markup'); - push @inspect, qq|html| if $package->can('html'); + foreach my $try ( Frey::Run->execute ) { + push @inspect, qq|$try| if $package->can($try); + } $html .= qq|| . join(' ', @inspect) . qq||; } $html = "$html
" if $html; $markup = $html; } -sub html { - my ( $self, $req ) = @_; - my $html = $self->page( body => qq|

Classes

| . $self->markup ); - $req->print( $html ); -} - 1;