Pod::W...Section(3pm)
πΈ NAME πΈ
Pod::Weaver::Section::GenerateSection β add pod section from an interpolated piece of text. Also hi bestie, this manual page is Pod::W...Section(3pm), from the User Contributed Perl Documentation. π
β¨ VERSION β¨
version 4.020 β slay, we're on that version.
π¦ SYNOPSIS π¦
In your weaver.ini:
[GenerateSection]
title = HOMEPAGE
text = This is the POD for distribution {{$name}}. Check out what we have
text = been up to at {{$homepage}}
You can leave out title if you pass it as the plugin name, like this:
[GenerateSection / HOMEPAGE]
π DESCRIPTION π
Okay so this plugin lets you create simple text sections, with or without using Text::Template for templated text. β¨
The text parameters become the lines of the template.
The values of text are concatenated, and variable names that match values on the distribution get interpolated. Setting the heading level lets you write down a pretty long section of POD text without needing extra files. For example:
[GenerateSection / FEEDBACK]
head = 1
[GenerateSection / Reporting bugs]
head = 2
text = Please report bugs when you find them. While we do have a mailing
text = list, please use the bug tracker at {{$bugtracker_web}}
text = to report bugs
[GenerateSection / Homegape]
head = 2
text = Also, come check out our other projects at
text = {{$homepage}}
(Yes, Homegape is exactly how it's spelled in the example. We're keeping it. π)
π 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. (So if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.)
It may work on older versions of perl, but no guarantee is made that the minimum required version won't be increased. The version may be increased for any reason, and there's no promise that patches will be accepted to lower the minimum required perl.
π ATTRIBUTES π
textβ the text to be added to the section. Multiple values are allowed and will be concatenated. Certain sequences in the text will be replaced (see below).headβ this is the X to use in the=headXthat's created. If it's0then no heading is added. It defaults to1.titleβ the title for this section. If none is given, the plugin's name is used.main_module_onlyβ if true, this attribute indicates that only the main module's Pod should be altered. By default, it isfalse.
And then the page has this next sentence right after it: "If true, the text is treated as a Text::Template template and rendered. This attribute is true by default." (That's literally what it says, bestie. π)
delimβ if given, this must be an arrayref with two elements. These will be the opening and closing delimiters of template variable sections. By default they are{{and}}.
π TEMPLATE RENDERING π
When rendering as a template, the variables $plugin, $dist, and $distmeta will be provided, set to the GenerateSection plugin, Dist::Zilla object, and the distribution metadata hash respectively. For convenience, the following variables are also set:
$name$version$homepage$repository_web$repository_url$bugtracker_web$bugtracker_email
π AUTHOR π
Ricardo SIGNES <cpan@semiotic.systems> β iconic.
π 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.
xoxo, your fave manual page π
β this one is from perl v5.38.2, dated 2024-03-24, and its page name is Pod::W...Section(3pm). bye bestie π«Ά
π¦ 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