5 |
with 'Frey::Config'; |
with 'Frey::Config'; |
6 |
with 'Frey::Escape'; |
with 'Frey::Escape'; |
7 |
|
|
8 |
|
use Data::Dump qw/dump/; |
9 |
|
use Frey::Dumper; |
10 |
|
|
11 |
=head1 NAME |
=head1 NAME |
12 |
|
|
13 |
Frey::Run - display required form field for Class and run it |
Frey::Run - display required form field for Class and run it |
33 |
default => sub { {} }, |
default => sub { {} }, |
34 |
); |
); |
35 |
|
|
|
use Data::Dump qw/dump/; |
|
|
|
|
36 |
sub html { |
sub html { |
37 |
my ( $self ) = @_; |
my ( $self ) = @_; |
38 |
|
|
81 |
} |
} |
82 |
warn ">>> markup $class ",length( $html ), " bytes\n"; |
warn ">>> markup $class ",length( $html ), " bytes\n"; |
83 |
} elsif ( $o->can('data') ) { |
} elsif ( $o->can('data') ) { |
84 |
$html = '<code>' . $self->html_escape( dump( $o->data ) ) . '</code>'; |
my $data = $o->data; |
85 |
|
$html .= Frey::Dumper->new( data => $data )->markup; |
86 |
|
$html .= '<hr/><code>' . $self->html_escape( dump( $data ) ) . '</code>'; |
87 |
} else { |
} else { |
88 |
$html = "IGNORE: $class ", $o->dump; |
$html = "IGNORE: $class ", $o->dump; |
89 |
warn $html; |
warn $html; |