The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Contenticious::Content::Node::File - a file in a Contenticious content tree

SYNOPSIS

    use Contenticious::Content::Node::File;
    my $file = Contenticious::Content::Node::File->new(
        filename => 'foo.md'
    );
    my $html = $file->html;

DESCRIPTION

File nodes represent files in a Contenticious::Content content tree.

ATTRIBUTES

Contenticious::Content::Node::File inherits all Contenticious::Content::Node attributes and implements the following new ones:

raw

Raw file content right after decoding.

content

File content after meta informations are extracted.

METHODS

Contenticious::Content::Node::File inherits all Contenticious::Content::Node methods and implements the following new ones:

html

    my $html = $file->html;

HTML generated by Text::Markdown from this file's content.

SEE ALSO

Contenticious::Content::Node, Contenticious::Content::Node::Directory, Contenticious::Content, Contenticious