Changeset 389
- Timestamp:
- 03/10/06 04:26:43
- Files:
-
- trunk/plagger/lib/Plagger/Plugin/CustomFeed/Debug.pm (modified) (1 diff)
- trunk/plagger/lib/Plagger/Plugin/Filter/Emoticon.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/CustomFeed/Debug.pm
r388 r389 43 43 1; 44 44 45 __END__ 46 47 =head1 NAME 48 49 Plagger::Plugin::CustomFeed::Deubg - Feed in config.yaml 50 51 =head1 SYNOPSIS 52 53 - module: CustomFeed::Deubg 54 config: 55 title: 'My Feed' 56 link: 'http://localhost/' 57 entry: 58 - title: 'First Entry' 59 link: 'http://localhost/1' 60 body: 'Hello World! :)' 61 - title: 'Second Entry' 62 link: 'http://localhost/2' 63 body: 'Good Bye! :P' 64 65 =head1 DESCRIPTION 66 67 This plugin allows you to define your feed in C<config.yaml>, which 68 makes it easier creating a testing environment for your Plugin 69 development. 70 71 =head1 AUTHOR 72 73 Naoya Ito E<lt>naoya@bloghackers.netE<gt> 74 75 =head1 SEE ALSO 76 77 L<Plagger> 78 79 =cut 80 trunk/plagger/lib/Plagger/Plugin/Filter/Emoticon.pm
r386 r389 21 21 my $emoticon = Text::Emoticon->new( 22 22 $self->conf->{driver} || 'MSN', 23 %{$self->conf->{option}}23 $self->conf->{option} || {}, 24 24 ); 25 25 $entry->body($emoticon->filter($entry->body)); … … 27 27 28 28 1; 29 30 __END__ 31 32 =head1 NAME 33 34 Plagger::Plugin::Filter::Emoticon - Emoticon Filter 35 36 =head1 SYNOPSIS 37 38 - module: Filter::Emoticon 39 config: 40 driver: Yahoo 41 option: 42 strict: 1 43 xhtml: 0 44 45 =head1 DESCRIPTION 46 47 This filter replaces text emoticons like ":-)", ";-P" etc. with 48 L<Text::Emoticon>. 49 50 =head1 CONFIG 51 52 =over 4 53 54 =item driver 55 56 Specify the driver's name of L<Text::Emoticon> you want to use. It 57 defaults to 'MSN'. 'Yahoo' and 'GoogleTalk' are also available. 58 59 =item option 60 61 Specify the options you want to pass to the L<Text::Emoticon>. 62 63 =back 64 65 =head1 AUTHOR 66 67 Naoya Ito E<lt>naoya@bloghackers.netE<gt> 68 69 =head1 SEE ALSO 70 71 L<Plagger>, L<Text::Emoticon> 72 73 =cut
