NAME

Contenticious::Content - content for Contenticious

SYNOPSIS

    use Contenticious::Content;
    my $content = Contenticious::Content->new(pages_dir => 'pages');
    my $node    = $content->find('foo/bar');

DESCRIPTION

Access a Contenticious content tree.

ATTRIBUTES

pages_dir

The directory to read from

root_node

The root of the generated content tree. Will be generated from pages_dir.

METHODS

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

SEE ALSO

Contenticious::Content::Node, Contenticious