1package Plagger::Plugin::Subscription::XOXO;
2use strict;
3use base qw( Plagger::Plugin::Subscription::XPath );
4
5sub load {
6    my($self, $context) = @_;
7
8    $self->conf->{xpath} = '//ul[@class="xoxo" or @class="subscriptionlist"]//a';
9    $self->SUPER::load($context);
10}
11
121;
13
14__END__
15
16=head1 NAME
17
18Plagger::Plugin::Subscription::XOXO - Subscription list with XOXO microformats
19
20=head1 SYNOPSIS
21
22  - module: Subscription::XOXO
23    config:
24      url: http://example.com/mySubscriptions.xhtml
25
26=head1 DESCRIPTION
27
28This plugin creates Subscription by fetching remote XOXO file by HTTP
29or locally (with C<file://> URI). The parser is implemented in really
30a dumb way and only supports extracting URL (I<href>) and title from A
31links inside XOXO C<ul> or C<ol> tags.
32
33=head1 AUTHOR
34
35Tatsuhiko Miyagawa
36
37=head1 SEE ALSO
38
39L<Plagger>, L<http://microformats.org/wiki/xoxo>
40
41=cut
42