28 |
default => 'Frey::Feed/as_data+uri=http://blog.rot13.org/index.xml|Frey::View::Dumper/as_markup', |
default => 'Frey::Feed/as_data+uri=http://blog.rot13.org/index.xml|Frey::View::Dumper/as_markup', |
29 |
); |
); |
30 |
|
|
31 |
|
sub render_pipe { 'radio' }; |
32 |
|
|
33 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
34 |
|
|
35 |
sub as_markup { |
sub as_markup { |
67 |
if ( $o->can('depends') ) { |
if ( $o->can('depends') ) { |
68 |
$o->depends; |
$o->depends; |
69 |
my $current_head; |
my $current_head; |
70 |
$current_head->{$_} foreach $self->head; |
$current_head->{$_}++ foreach $self->head; |
71 |
foreach ( $o->head ) { |
foreach ( $o->head ) { |
72 |
next if $current_head->{$_}++; |
next if $current_head->{$_}++; |
73 |
$self->add_head( $_ ); |
$self->add_head( $_ ); |
77 |
my $result = $o->$method; |
my $result = $o->$method; |
78 |
warn "# result ",length( $result ), " bytes ", ref($result); |
warn "# result ",length( $result ), " bytes ", ref($result); |
79 |
|
|
80 |
$self->add_status({ $part => { $class => { method => $method, args => $args } } }); |
my $current_status; |
81 |
|
$current_status->{$_}++ foreach $self->status; |
82 |
|
foreach ( $o->status ) { |
83 |
|
next if $current_status->{$_}++; |
84 |
|
$self->add_status( $_ ); |
85 |
|
warn "# pipe add_status: $_"; |
86 |
|
} |
87 |
|
|
88 |
$self->content_type( $o->content_type ) if $o->can('content_type'); |
$self->content_type( $o->content_type ) if $o->can('content_type'); |
89 |
|
|