The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Statocles::App::Blog - A blog application

VERSION

version 0.010

DESCRIPTION

This is a simple blog application for Statocles.

ATTRIBUTES

source

The store to read for documents.

url_root

The URL root of this application. All pages from this app will be under this root. Use this to ensure two apps do not try to write the same path.

theme

The theme for this app. See "THEME" for what templates this app uses.

page_size

The number of posts to put in a page (the main page and the tag pages). Defaults to 5.

METHODS

command( app_name, args )

Run a command on this app. The app name is used to build the help, so users get exactly what they need to run.

post_pages()

Get the individual post Statocles::Page objects.

index()

Get the index page (a page object) for this application.

tag_pages()

Get pages for the tags in the blog post documents.

pages()

Get all the pages for this application.

tags()

Get a set of hashrefs suitable for creating a list of tag links. The hashrefs contain the following keys:

    title => 'The tag text'
    href => 'The URL to the tag page'

THEME

blog => index

The index page template. Gets the following template variables:

site

The Statocles::Site object.

pages

An array reference containing all the blog post pages. Each page is a hash reference with the following keys:

content

The post content

title

The post title

author

The post author

blog => post

The main post page template. Gets the following template variables:

site

The Statocles::Site object

content

The post content

title

The post title

author

The post author

SEE ALSO

Statocles::App

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 322:

You forgot a '=back' before '=head1'