Ian Langworth ☠ > SoggyOnion-0.04 > SoggyOnion::Resource

Download:
SoggyOnion-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.04   Source  

NAME ^

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

SYNOPSIS ^

    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 ^

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 ^

SoggyOnion::Plugin, SoggyOnion

AUTHOR ^

Ian Langworth, <ian@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (C) 2004 by Ian Langworth

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.