Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add HTML section in Perl POD using Pod::Weaver
    primarykey
    data
    text
    <p>I use <a href="https://metacpan.org/module/Pod%3a%3aWeaver" rel="nofollow">Pod::Weaver</a> with <a href="https://metacpan.org/module/Dist%3a%3aZilla" rel="nofollow">Dist::Zilla</a>. It does several good things for me. It adds POD section VERSION, AUTHOR, LICENSE automatically, and in my source code I can use simple POD syntax, I can write "=method new" and it will be converted to correct POD.</p> <p>Now I wanted to add an image to the POD. To do it I need to add some HTML. So I'm writing in my <a href="https://github.com/bessarabov/StatusBoard-Graph/blob/757efd497a1d89d498db3c3fc1cd078a4a52422a/lib/StatusBoard/Graph.pm#L46" rel="nofollow">source code</a>:</p> <pre><code>=begin HTML &lt;p&gt; &lt;a href="http://upload.bessarabov.ru/bessarabov/031VBX4pHw_ALPcxRTVjflnAWuc.png"&gt; &lt;img src="http://upload.bessarabov.ru/bessarabov/VdagpUXEQdMslOqUyOAzwa-DOaU.png" width="500" height="125" alt="Status board graph sample" /&gt; &lt;/a&gt; &lt;/p&gt; =end HTML </code></pre> <p>Then I write <code>dzil release</code> and release the <a href="https://metacpan.org/module/StatusBoard%3a%3aGraph" rel="nofollow">module</a> on CPAN. After uploading to CPAN I recognize that my HTML POD was changed by Pod::Weaver and now it looks like:</p> <pre><code>=for HTML &lt;p&gt; &lt;p&gt; &lt;a href="http://upload.bessarabov.ru/bessarabov/031VBX4pHw_ALPcxRTVjflnAWuc.png"&gt; &lt;img src="http://upload.bessarabov.ru/bessarabov/VdagpUXEQdMslOqUyOAzwa-DOaU.png" width="500" height="125" alt="Status board graph sample" /&gt; &lt;/a&gt; &lt;/p&gt; </code></pre> <p>And this HTML part has been moved in the POD. I wanted it to be just after SYNOPSIS part, but not it is after the last method.</p> <p>I still want to use Pod::Weaver, because it does a lot of good things, but I want HTML to be put in the exact place of the POD and not to be converted.</p> <p>How can I do it?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload