NAME Template::Plugin::xkcd - WWW::xkcd plugin for Template::Toolkit VERSION version 0.003 SYNOPSIS # in your template [% USE xkcd %]

xkcd comics!

Today's xkcd comic: [% xkcd.comic %]

The 20th comic: [% xkcd.comic(20) %]

DESCRIPTION A Template (Template::Toolkit) plugin to provide an image tag for xkcd comics. You can pick which comic (either latest, or by number). It uses WWW::xkcd. METHODS new This method is used by Template. If you want to use this plugin, simply add the following to your template: [% USE xkcd %] comic Fetches a comic. Accept an optional argument for the number of a comic. Returns an HTML tag with the path and alternative text (alt text). This gets the latest: [% xkcd.comic %] This gets the first: [% xkcd.comic(1) %] WHY Just because. It's actually more useful than a lot of other stuff on CPAN. :) AUTHOR Sawyer X COPYRIGHT AND LICENSE This software is copyright (c) 2012 by Sawyer X. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.