NAME
Statocles::Page - Render documents into HTML
VERSION
version 0.020
DESCRIPTION
A Statocles::Page takes one or more documents and renders them into one or more HTML pages using a main template and a layout template.
ATTRIBUTES
app
The application this page came from, so we can give it to the templates.
path
The absolute URL path to save this page to.
links
A hash of arrays of links to pages related to this page. Possible keys:
feed - Feed pages related to this page
Each item in the array is a hash with the following keys:
href - The page for the link
type - The MIME type of the link, optional
markdown
The Text::Markdown object to render document Markdown.
template
The main template for this page. The result will be wrapped in the layout template.
layout
The layout template for this page, which will wrap the content generated by the template.
METHODS
render
Render the page, using the template and wrapping with the layout.
SEE ALSO
- Statocles::Page::Document
-
A page that renders a single document.
- Statocles::Page::List
-
A page that renders a list of other pages.
AUTHOR
Doug Bell <preaction@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.