Skip to content
Convert Perl6 Pod to shiny HTML
Pull request Compare This branch is 112 commits ahead, 1 commit behind tadzik:master.
Latest commit adfeabf Jun 15, 2016 @zoffixznet zoffixznet committed on GitHub Add configurable css-url



Render Pod6 as HTML


From the command line:

perl6 --doc=HTML lib/ > FancyModule.html

From within Perl 6:

=pod My I<super B<awesome>> embedded C<pod>

say Pod::To::HTML.render($=pod[0]);


Pod::To::HTML takes a Pod tree and outputs correspondingly formatted HTML. Generally this is via perl6 --doc=HTML, which extracts the pod from the document and feeds it to Pod::To::HTML. The other route is with the render method (called by --doc=HTML), which creates a complete HTML document from the Pod tree it is called with.

Something went wrong with that request. Please try again.