Angerwhale::Content::Provider - provides methods for getting content
my $provider = Angerwhale::Content::Provider::Subclass->new; my @articles = $provider->get_articles(); my $article = $provider->get_article('foo article');
Create an instance -- don't call this method.
Returns all articles
Returns a named article
Returns a sorted list of the names of all categories.
Returns a sorted list of all tags that have been used
Returns a sorted list of all articles that have been tagged with a certain tag. Multiple tags are also OK.
Retruns an unsorted list of all articles in a category.
XXX: TODO
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.)
To install Angerwhale, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Angerwhale
CPAN shell
perl -MCPAN -e shell install Angerwhale
For more information on module installation, please visit the detailed CPAN module installation guide.