Perl6::Pod::Block::nested - Nesting blocks
=begin nested We are all of us in the gutter,E<NL> but some of us are looking at the stars! =begin nested -- Oscar Wilde =end nested =end nested
Any block can be nested by specifying a :nested option on it:
:nested
=begin para :nested We are all of us in the gutter,E<NL> but some of us are looking at the stars! =end para
However, qualifying each nested paragraph individually quickly becomes tedious if there are many in a sequence, or if multiple levels of nesting are required:
=begin para We are all of us in the gutter,E<NL> but some of us are looking at the stars! =end para =begin para :nested(2) -- Oscar Wilde =end para
So Pod provides a =nested block that marks all its contents as being nested:
=nested
Nesting blocks can contain any other kind of block, including implicit paragraph and code blocks. Note that the relative physical indentation of the blocks plays no role in determining their ultimate nesting. The preceding example could equally have been specified:
=nested test code
Render to:
<blockquote> test code </blockquote>
http://zag.ru/perl6-pod/S26.html, Perldoc Pod to HTML converter: http://zag.ru/perl6-pod/, Perl6::Pod::Lib
Zahatski Aliaksandr, <zag@cpan.org>
Copyright (C) 2009-2015 by Zahatski Aliaksandr
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Perl6::Pod, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pod
CPAN shell
perl -MCPAN -e shell install Perl6::Pod
For more information on module installation, please visit the detailed CPAN module installation guide.