# Blosxom Plugin: rss10 # Author(s): Rael Dornfest # Version: 2.0b4 # Documentation: See the bottom of this file or type: perldoc rss10 package rss10; # --- Configurable variables ----- # What is your full name? $creator = 'John Jacob Jingleheimer Schmidt'; # What is your email address? $email = 'jjjs@example'; # What is your timezone's offset from GMT? $tz_offset = "-08:00"; #PST # What placeholder in your flavour tempalte should I replace with ? my $template_placeholder = "{{{items}}}"; # What is your TrackBack implementation's URL (if any)? #$trackback_url = "$blosxom::url/tb.cgi"; # --- Plug-in package variables ----- $items; $body; $trackback_ping; $generatorAgent = "http://blosxom.sourceforge.net/?v=$blosxom::version"; $T = 'T'; $colon = ":"; # -------------------------------- use FileHandle; my $fh = new FileHandle; sub start { 1; } sub head { $items = ''; } sub story { my($pkg, $path, $filename, $story_ref, $title_ref, $body_ref) = @_; $body = $$body_ref; $trackback_ping = $trackback_url ? qq{} : ''; $items .= qq{ \n}; 1; } sub foot { my($pkg, $currentdir, $foot_ref) = @_; $items = <<"ITEMS"; $items ITEMS $blosxom::output =~ s/$template_placeholder/$items/m; return 1; } 1; __END__ =head1 NAME Blosxom Plug-in: rss10 =head1 SYNOPSIS Purpose: Provides the extra bit of programming needed to produce a valid RSS 1.0 [http://www.purl.org/rss/1.0/] feed for syndication. Works in concert with the associated {head,story,foot,content_type,date}.rss10 flavour files. =head1 VERSION 2.0b1 Version number coincides with the version of Blosxom with which the current version was first bundled. =head1 AUTHOR Rael Dornfest , http://www.raelity.org/ This plugin is now maintained by the Blosxom Sourceforge Team, . =head1 SEE ALSO Blosxom Home/Docs/Licensing: http://blosxom.sourceforge.net/ Blosxom Plugin Docs: http://blosxom.sourceforge.net/documentation/users/plugins.html =head1 BUGS None known; please send bug reports and feedback to the Blosxom development mailing list . =head1 LICENSE Blosxom and this Blosxom Plug-in Copyright 2003, Rael Dornfest Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.