Pod::Weaver(3pm)
π Pod::Weaver(3pm) β bestie, letβs weave π
β¨ NAME β¨
Okay so this is Pod::Weaver(3pm) from the User Contributed Perl Documentation, and the whole name situation is: weave together a Pod document from an outline. No cap. π
π VERSION π
version 4.020 β thatβs the version, bestie. Slay. β¨
πͺ SYNOPSIS πͺ
my $weaver = Pod::Weaver->new_with_default_config;
my $document = $weaver->weave_document({
pod_document => $pod_elemental_document,
ppi_document => $ppi_document,
license => $software_license,
version => $version_string,
authors => \@author_names,
})
π DESCRIPTION π
Okay so Pod::Weaver is a system for building Pod documents from templates. It does not perform simple text substitution β instead it builds a Pod::Elemental::Document. Its plugins sketch out a series of sections that will be produced based on an existing Pod document or other provided information. Itβs giving architecture, not copy-paste. ποΈπ
πͺ PERL VERSION πͺ
This module should work on any version of perl still receiving updates from the Perl 5 Porters. That means it should work on any version of perl released in the last two to three years. (That is, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.) π¦
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. So donβt come for the minimum version, okay? π
π§ ATTRIBUTES π§
πͺ΅ logger
This attribute stores the logger, which must provide a log method. The weaverβs log method delegates to the loggerβs log method. Chain of command, periodt. π
π plugins
This attribute is an arrayref of objects that can perform the Pod::Weaver::Role::Plugin role. In general, its contents are found through the plugins_with method. Slay. β¨
π METHODS π
π§© plugins_with
my $plugins_array_ref = $weaver->plugins_with('-Section');
This method will return an arrayref of plugins that perform the given role, in the order of their registration. If the role name begins with a hyphen, the method will prepend Pod::Weaver::Role::. Thatβs the whole mood. π«Ά
πͺ weave_document
my $document = $weaver->weave_document(\%input);
This is the most important method in Pod::Weaver. Given a set of input parameters, it will weave a new document. Different section plugins will expect different input parameters to be present, but some common ones include:
pod_document- aPod::Elemental::Documentfor the original Pod documentppi_document- a PPI document for the source of the module being documentedlicense- aSoftware::Licenseobject for the source moduleβs licenseversion- a version (string) to use in produced documentation
The pod_document should have gone through a Pod5 transformer, and should probably have had its =head1 elements nested. πΈ
The method will return a new Pod::Elemental::Document. The input documents may be destructively altered during the weaving process. If they should be untouched, pass in copies.
β οΈ Bestie, that destructive-alteration thing is real: if you need the originals untouched, pass in copies. No cap. π
π new_with_default_config
This method returns a new Pod::Weaver with a stock configuration by using only Pod::Weaver::PluginBundle::Default. Easy slay. β¨
π AUTHOR π
Ricardo SIGNES <cpan@semiotic.systems> β iconic. π
π CONTRIBUTORS π
The contributor squad pulled up and we are obsessed. π«Ά
- Alex Peters
<lxp@cpan.org> - Apocalypse
<perl@0ne.us> - Blabos de Blebe
<blabos@cpan.org> - Caleb Cushing
<xenoterracide@gmail.com> - Christian Walde
<walde.christian@googlemail.com> - Christopher J. Madsen
<perl@cjmweb.net> - Chris Weyl
<cweyl@alumni.drew.edu> - Dave Houston
<dave.houston@gmail.com> - Dave Rolsky
<autarch@urth.org> - David E. Wheeler
<david@justatheory.com> - David Golden
<dagolden@cpan.org> - David Miguel Susano Pinto
<carandraug+dev@gmail.com> - David Zurborg
<post@david-zurb.org> - Doug Bell
<doug@preaction.me> - Florian Ragwitz
<rafl@debian.org> - Jonathan "Duke" Leto
<jonathan@leto.net> - Joshua Keroes
<joshua.keroes@integratelecom.com> - Karen Etheridge
<ether@cpan.org> - Kent Fredric
<kentfredric@gmail.com> - Kivanc Yazan
<kyzn@cpan.org> - Marcel Gruenauer
<hanekomu@gmail.com> - Randy Stauner
<randy@magnificent-tears.com> - Ricardo Signes
<rjbs@semiotic.systems> - Sam Graham
<git@illusori.co.uk> - Shlomi Fish
<shlomif@shlomifish.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2024 by Ricardo SIGNES. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
And thatβs the tea β β this page is Pod::Weaver(3pm), from perl v5.38.2, dated 2024-03-24. Mwah πβ¨
π¦ where this page comes from
- debian trixie: libpod-weaver-perl 4.020-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpod-weaver-perl 4.020-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpod-weaver-perl 4.020-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms