Plagger::Plugin::Bundle::Defaults - Load default built-in plugins


Plagger documentation Contained in the Plagger distribution.

Index


Code Index:

NAME

Top

Plagger::Plugin::Bundle::Defaults - Load default built-in plugins

SYNOPSIS

Top

  # It's not actually needed since Plagger autoload this bundle as well
  - module: Bundle::Defaults

DESCRIPTION

Top

This plugin is a bundle of default plugins, loaded by default. The default plugins loaded by this plugin are:

Aggregator::Simple
Summary::Auto
Summary::Simple
Namespace::MediaRSS
Namespace::HatenaFotolife
Namespace::ApplePhotocast

AUTHOR

Top

Tatsuhiko Miyagawa

SEE ALSO

Top

Plagger


Plagger documentation Contained in the Plagger distribution.

package Plagger::Plugin::Bundle::Defaults;
use strict;
use base qw( Plagger::Plugin );

sub register {
    my($self, $context) = @_;

    unless ( $context->is_loaded(qr/^Aggregator::/) ) {
        $context->load_plugin({ module => 'Aggregator::Simple' });
    }

    $context->autoload_plugin({ module => 'Summary::Auto' });
    $context->autoload_plugin({ module => 'Summary::Simple' });

    $context->autoload_plugin({ module => 'Namespace::HatenaFotolife' });
    $context->autoload_plugin({ module => 'Namespace::MediaRSS' });
    $context->autoload_plugin({ module => 'Namespace::ApplePhotocast' });
}

1;
__END__