NAME

Stenciller::Plugin::ToUnparsedText - A plugin that doesn't transforme the text the text

VERSION

Version 0.1200, released 2015-01-17.

SYNOPSIS

use Stenciller;
my $stenciller = Stenciller->new(filepath => 't/corpus/test-1.stencil');
my $content = $stenciller->transforme('ToUnparsedText');

DESCRIPTION

This plugin to Stenciller basically returns all text content of the stencils.

METHODS

transform

Positional parameters    
$transform_args HashRef optional, default = HASH(0x99ba070) Settings for the current transformation
Returns    
Str     The transformed content.

The currently available keys in the $transform_args is:

skip_header_lines = 1>

skip_header_lines takes a boolean indicating if the Stenciller's header_lines should be skipped. Default is 0.

stencils = []>

stencils takes an array reference of which stencils in the currently parsed file that should be included in the output. The index is zero based.

If this plugin is used via Pod::Elemental::Transformer::Stenciller it could be used like this in 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 => [] }

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) 2015 by Erik Carlsson <info@code301.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.