Statocles::Page - Render documents into HTML
version 0.026
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.
The application this page came from, so we can give it to the templates.
The absolute URL path to save this page to.
The publish date/time of this page. A Time::Piece object.
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
The Text::Markdown object to render document Markdown.
The main template for this page. The result will be wrapped in the layout template.
The layout template for this page, which will wrap the content generated by the template.
How frequently a search engine should check this page for changes. This is used in the sitemap.xml to give hints to search engines.
Should be one of:
always hourly daily weekly monthly yearly never
Defaults to weekly.
weekly
NOTE: This is only a hint to search engines, not a command. Pages marked hourly may be checked less often, and pages marked never may still be checked once in a while. never is mainly used for archived pages or permanent links.
hourly
never
How high should this page rank in search results compared to similar pages on this site? This is used in the sitemap.xml to rank individual, full pages more highly than aggregate, list pages.
Value should be between 0.0 and 1.0. The default is 0.5.
0.0
1.0
0.5
This is only used to decide which pages are more important for the search engine to crawl, and which pages within your site should be given to users. It does not improve your rankings compared to other sites. See the sitemap protocol for details.
Render the page, using the template and wrapping with the layout.
A page that renders a single document.
A page that renders a list of other pages.
Doug Bell <preaction@cpan.org>
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.
To install Statocles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statocles
CPAN shell
perl -MCPAN -e shell install Statocles
For more information on module installation, please visit the detailed CPAN module installation guide.