Statocles::Page::ListItem - An item in a List page
version 0.056
This page wraps another page for use inside of a list page. This page will rewrite content to ensure that relative links in the page work correctly when moved into the list page.
The page object for this item in the list.
One of "absolute" or "full". Defaults to "absolute".
If "absolute", will rewrite the content using the absolute path of the page.
If "full", will use the full URL (the site base_url and the page URL) when rewriting the content.
This page proxies everything necessary to be a page object, without consuming the page role.
Methods are proxyed to the page object so that this object appears mostly as the page inside of it.
my $html = $page->content;
Get the content for this page. Rewrite any links, images, or other according to the rewrite_mode attributes.
my @sections = $page->sections;
Get a list of content divided into sections. The Markdown "---" marker divides sections. Rewrite any links, images, or other according to the rewrite_mode attributes.
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2015 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.