NAME
Stenciller::Plugin::ToUnparsedText - A plugin that doesn't transform the text
VERSION
Version 0.1400, released 2016-02-03.
SYNOPSIS
use Stenciller;
my $stenciller = Stenciller->new(filepath => 't/corpus/test-1.stencil');
my $content = $stenciller->transform('ToUnparsedText');
DESCRIPTION
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 => [] }
ATTRIBUTES
text_as_html_pod
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.
METHODS
transform
See transform in Stenciller::Transformer.
SOURCE
https://github.com/Csson/p5-Stenciller
HOMEPAGE
https://metacpan.org/release/Stenciller
AUTHOR
Erik Carlsson <info@code301.com>
COPYRIGHT AND LICENSE
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.