Contenticious::Content - content for Contenticious
use Contenticious::Content; my $content = Contenticious::Content->new(pages_dir => 'pages'); my $node = $content->find('foo/bar');
Access a Contenticious content tree.
pages_dir
The directory to read from
root_node
The root of the generated content tree. Will be generated from pages_dir.
find
my $node = $content->find('foo/bar');
Find a content node for a given path
for_all_nodes
$content->for_all_nodes(sub { my $node = shift; do_something_with($node); });
Execute a subroutine for all content nodes
empty_cache
Delete cached content
Contenticious::Content::Node, Contenticious
To install Contenticious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Contenticious
CPAN shell
perl -MCPAN -e shell install Contenticious
For more information on module installation, please visit the detailed CPAN module installation guide.