| Plagger documentation | Contained in the Plagger distribution. |
Plagger::Plugin::Aggregator::Null - Aggregator that doesn't do anything
- module: Aggregator::Null
This plugin implements Plagger Aggregator but it doesn't do anything useful. It could be only useful when you want to just pass subscribed feed to Publish/Notify plugins, or inside test scripts.
Tatsuhiko Miyagawa
| Plagger documentation | Contained in the Plagger distribution. |
package Plagger::Plugin::Aggregator::Null; use strict; use base qw( Plagger::Plugin ); sub register { my($self, $context) = @_; $context->register_hook( $self, 'customfeed.handle' => \&aggregate, ); } sub aggregate { my($self, $context, $args) = @_; $context->update->add($args->{feed}); return 1; } 1; __END__