root/trunk/plagger/lib/Plagger/Plugin/Subscription/XOXO.pm

Revision 783 (checked in by youpy, 14 years ago)

Refactored

Line 
1 package Plagger::Plugin::Subscription::XOXO;
2 use strict;
3 use base qw( Plagger::Plugin::Subscription::XPath );
4
5 sub load {
6     my($self, $context) = @_;
7
8     $self->conf->{xpath} = '//ul[@class="xoxo" or @class="subscriptionlist"]//a';
9     $self->SUPER::load($context);
10 }
11
12 1;
13
14 __END__
15
16 =head1 NAME
17
18 Plagger::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
28 This plugin creates Subscription by fetching remote XOXO file by HTTP
29 or locally (with C<file://> URI). The parser is implemented in really
30 a dumb way and only supports extracting URL (I<href>) and title from A
31 links inside XOXO C<ul> or C<ol> tags.
32
33 =head1 AUTHOR
34
35 Tatsuhiko Miyagawa
36
37 =head1 SEE ALSO
38
39 L<Plagger>, L<http://microformats.org/wiki/xoxo>
40
41 =cut
Note: See TracBrowser for help on using the browser.