NAME
Swim::Plugin::cpan - Swim CPAN Head/Tail Support
VERSION
This document describes Swim::Plugin::cpan version 0.0.7.
SYNOPSIS
In your .swim
file:
<<<cpan-head>>>
... Swim CPAN doc content ...
<<<cpan-tail>>>
From the command line:
swim --to=pod --meta=Meta doc/MyModule.swim
DESCRIPTION
This Swim plugin will generate the head and tail of your pod files from a metadata file.
SWIM FUNCTIONS
This plugin provides 2 block level functions:
- `<<<cpan-head [args]>>>
-
The
cpan-head
function adds aname
,badge
andversion
section (in that order) to your document using metadata variables. By default you get aNAME
section and aVERSION
section. You get a badge section if your metadata has abadge
key. You can specify the section names you want like this:<<<cpan-head name version>>>
You can request a section not be used like this:
<<<cpan-head -version>>>
- `<<<cpan-tail [args]>>>
-
The
cpan-tail
function adds asee
,author
andcopyright
section (in that order) to your document using metadata variables. By default you get aAUTHOR
section and aCOPYRIGHT AND LICENSE
section. You can request a 'SEE ALSO' section if your metadata has asee
key. You can specify the section names you want like this:<<<cpan-tail see author copyright>>>
You can request a section be added like this:
<<<cpan-head +see>>>
Meta Data Used
name
-
Dist or module name
abstract
-
Dist abstract
version
-
Dist version
-
Author's full name
-
Author's email address
badge
-
One or more badge types. Optional.
see
-
List of links or module names. Optional.
SEE ALSO
AUTHOR
Ingy döt Net <ingy@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2014-2015. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.