# Blosxom Plugin: microid # Author: Keith Beckman # Version: 0.1a # Documentation: See the bottom of this file, or type: perldoc microid package microid; use Digest::SHA1 qw(sha1_hex); use strict; # --- Configurable Variables # The emails with which to sign your pages my @ids = qw(whos@sk.ing foo@example.com alice@rabbithole.org); # String by which to indent each microid meta tag my $indent = "\t"; # ------------------------------ sub start { my $uri = $blosxom::url . ($blosxom::url =~ m/\/$/ ? '' : '/') . $blosxom::path_info; (my $proto = $uri) =~ s/(.+):\/\/.+/$1/; foreach (@ids) { my $id = "$indent\n"; $microid::microid .= $id; } chomp($microid::microid); 1; } 1; __END__ =head1 NAME Blosxom plugin: microid =head2 SYNOPSIS MicroID signs the current page URI with each specified email address and creates the appropriate MicroID tags. =head1 INSTALLATION AND CONFIGURATION 1. Add all desired MicroID emails (no support yet for arbitrary schemes) to @ids. 2. For consistency with your template coding standards, set $indent appropriately. 3. Add $microid::microid in the of your header template. =head1 DESCRIPTION See Synopsis =head1 DEPENDENCIES Digest::SHA1 =head1 TODO Arbitrary identity URI schemes Choice of hash function =head1 VERSION 2008-04-05 =head1 VERSION HISTORY 2008-04-05 v0.1a: First release =head1 AUTHOR "Keith Beckman" =head1 SEE ALSO MicroID: http://microid.org/ Blosxom Home/Docs/Licensing: http://www.raelity.org/apps/blosxom/ Blosxom Plugin Docs: http://www.raelity.org/apps/blosxom/plugin.shtml =head1 BUGS Address bug reports and comments to the Blosxom mailing list [http://www.yahoogroups.com/group/blosxom]. =head1 LICENSE copyright 2008 Keith Beckman http://alphahelical.com/ 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.