--- trunk/lib/Frey/Run.pm 2008/11/06 18:03:06 324
+++ trunk/lib/Frey/Run.pm 2008/11/06 20:56:44 327
@@ -5,6 +5,9 @@
with 'Frey::Config';
with 'Frey::Escape';
+use Data::Dump qw/dump/;
+use Frey::Dumper;
+
=head1 NAME
Frey::Run - display required form field for Class and run it
@@ -30,8 +33,6 @@
default => sub { {} },
);
-use Data::Dump qw/dump/;
-
sub html {
my ( $self ) = @_;
@@ -80,7 +81,9 @@
}
warn ">>> markup $class ",length( $html ), " bytes\n";
} elsif ( $o->can('data') ) {
- $html = '' . $self->html_escape( dump( $o->data ) ) . '
';
+ my $data = $o->data;
+ $html .= Frey::Dumper->new( data => $data )->markup;
+ $html .= '
' . $self->html_dump( $data ) . '
';
} else {
$html = "IGNORE: $class ", $o->dump;
warn $html;