NAME
Angerwhale::Content::ContentProvider - provides methods for getting content
SYNOPSIS
my $provider = Angerwhale::Content::ContentProvider::Subclass->new;
my @articles = $provider->get_articles();
my $article = $provider->get_article('foo article');
METHODS
new
Create an instance -- don't call this method.
get_articles
Returns all articles
get_article
Returns a named article
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_tag
Returns a sorted list of all articles that have been tagged with a certain tag. Multiple tags are also OK.
get_by_category
Retruns an unsorted list of all articles in a category.
get_by_date
XXX: TODO
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.)