Stenciller::Plugin::ToUnparsedText - A plugin that doesn't transform the text
Version 0.1400, released 2016-02-03.
use Stenciller; my $stenciller = Stenciller->new(filepath => 't/corpus/test-1.stencil'); my $content = $stenciller->transform('ToUnparsedText');
This plugin to Stenciller basically returns all text content of the stencils.
If this plugin is used via Pod::Elemental::Transformer::Stenciller it could be used like this in pod:
=pod # includes header_lines and all stencils :stenciller ToUnparsedText atestfile-1.stencil # includes header_lines and all stencils :stenciller ToUnparsedText atestfile-1.stencil { } # includes only the first stencil in the file :stenciller ToUnparsedText atestfile-1.stencil { stencils => [0], skip_header_lines => 1 } # includes only the header_lines :stenciller ToUnparsedText atestfile-1.stencil { stencils => [] }
Default: 0
If set to a true value, the parts that are neither input or output will be rendered between =begin html and =end html. This is useful when rendering the same stencils to html examples files as well as including in pod.
input
output
=begin html
=end html
See transform in Stenciller::Transformer.
https://github.com/Csson/p5-Stenciller
https://metacpan.org/release/Stenciller
Erik Carlsson <info@code301.com>
This software is copyright (c) 2016 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Stenciller, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Stenciller
CPAN shell
perl -MCPAN -e shell install Stenciller
For more information on module installation, please visit the detailed CPAN module installation guide.