SoggyOnion::Resource - determines which SoggyOnion::Plugin to use


SoggyOnion documentation  | view source Contained in the SoggyOnion distribution.

Index


NAME

Top

SoggyOnion::Resource - determines which SoggyOnion::Plugin to use

SYNOPSIS

Top

    my $item = {
        rss          => 'http://use.perl.org/useperl.rss',
        id           => 'use_perl',
        limit        => 10,
        descriptions => 'no',
        };
    my $resource = SoggyOnion::Resource->new($item);
    print $resource->content;

DESCRIPTION

Top

To override how SoggyOnion determines what plugin to use based on what keys are in the item in the configuration, copy this module and add a resourceclass option in your config.yaml, such as:

    ...
    templatedir:   '/path/to/templates'
    cachedir:      '/tmp/soggycache'
    resourceclass: 'My::Custom::ResourceHandler'
    ...

SEE ALSO

Top

SoggyOnion::Plugin, SoggyOnion

AUTHOR

Top

Ian Langworth, <ian@cpan.org>

COPYRIGHT AND LICENSE

Top


SoggyOnion documentation  | view source Contained in the SoggyOnion distribution.