NAME

Statocles::Page::ListItem - An item in a List page

VERSION

version 0.098

DESCRIPTION

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.

ATTRIBUTES

page

The page object for this item in the list.

rewrite_mode

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.

METHODS

DOES

This page proxies everything necessary to be a page object, without consuming the page role.

AUTOLOAD

Methods are proxyed to the page object so that this object appears mostly as the page inside of it.

content

my $html = $page->content;

Get the content for this page. Rewrite any links, images, or other according to the rewrite_mode attributes.

sections

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.

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 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.