NAME

Angerwhale::Model::Filesystem - Filesystem article and comment store

CONFIGURATION

base

The directory where the articles are stored. May contain hidden files or files (or directories) staring with _, as in _users. These files will be ignored by this module.

METHODS

new

Used by Catalyst to initialize the article store

get_article

Given the name of an article, retrieves it from the store and returns it in a Angerwhale::ContentItem::Article object.

get_articles

Returns a list of all articles in the store. The articles are Angerwhale::ContentItem::Articles.

get_categories

Returns a sorted list of the names of all categories.

get_tags

Returns a sorted list of all tags that have been used

get_by_category

Retruns an unsorted list of all articles in a category.

get_by_tag

Returns a sorted list of all articles that have been tagged with a certain tag. Multiple tags are also OK.

ACCEPT_CONTEXT

Get the context (for caching)

revision

This method returns a "revision number" for the entire blog. It will increase over time, and will remain the same if nothing inside the blog directory changes. The revision number will decrease if an article is removed, so don't remove them without restarting the application. (Otherwise the cache will be stale.)

AUTHOR

Jonathan Rockway

LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.