NAME
HiD::Page - Pages that are converted during the output process
SYNOPSIS
my $page = HiD::Page->new({
dest_dir => 'path/to/output/dir' ,
hid => $hid_object ,
input_filename => 'path/to/page/file' ,
layouts => $hash_of_hid_layout_objects,
});
DESCRIPTION
Class representing a "page" object -- i.e., a file that is not a blog post, but that is still processed (e.g., converted from Markdown or Textile to HTML and run through a layout rendering step) during publication.
METHODS
get_default_layout
Get the name of the default page layout. (The default is 'default'.)
publish
Publish -- convert, render through any associated layouts, and write out to disk -- this data from this object.
NOTE
Also consumes HiD::Role::IsConverted and HiD::Role::IsPublished; see documentation for that role as well if you're trying to figure out how an object from this class works.
VERSION
version 0.9
AUTHOR
John SJ Anderson <genehack@genehack.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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.