NAME

Stenciller::Plugin::ToHtmlPreBlock - A plugin that transforms to html

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('ToHtmlPreBlock');

DESCRIPTION

This plugin to Stenciller places the before_input, between and after_output regions in <p> tags and the input and output regions inside <pre> tags.

Content that will be placed in pre tags (input and output sections in stencils) also have four leading spaces removed.

ATTRIBUTES

output_also_as_html

Default: 0

If set to a true value, the contents of output in stencils is rendered as html (directly following the pre-block).

separator

Default: undef

When set, this text is used to separate two stencils.

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.