The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HiD::Layout - Class representing a particular layout

SYNOPSIS

    my $layout = HiD::Layout->new({
      filename  => $path_to_file ,
      processor => $hid_processor_object ,
    });

DESCRIPTION

Class representing layout files.

ATTRIBUTES

content

Content of this layout.

ext

File extension of this layout.

filename

Filename of this layout.

layout

Name of a layout that will be used when processing this layout. (Can be applied recursively.)

metadata

Metadata for this layout. Populated from the YAML front matter in the layout file.

name

Name of the layout.

processor

Processor object used to process content through this layout when rendering.

METHODS

render

Pass in a hash of data, apply the layout using that hash as input, and return the resulting output string.

Will recurse into embedded layouts as needed.

VERSION

version 1.992

AUTHOR

John SJ Anderson <genehack@genehack.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by John SJ Anderson.

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