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

NAME

Muster::LeafFile - a file in a Muster content tree

VERSION

version 0.61

SYNOPSIS

    use Muster::LeafFile;
    my $file = Muster::LeafFile->new(
        filename => 'foo.md'
    );
    my $html = $file->html;

DESCRIPTION

File nodes represent files in a content tree.

raw

The raw content.

cooked

The "cooked" (processed) content.

html

HTML generation.

meta

Get the meta-data from the file.

decache

Removed the cached information. I'm not sure we still need to do this?

build_title

Build the title for this page.

reclassify

Reclassify this object as a Muster::LeafFile subtype. If a subtype exists, cast to that subtype and return the object; if not, return self. To simplify things, filetypes are determined by the file extension, and the object name will be Muster::LeafFile::$filetype

build_name

Build the base name of the related page.

is_this_a_page

By default, it is not a page. Returns undef.

build_pagename

Create the pagename from the filename.

build_filetype

Derive the filetype for this file, if it has a known module for it. Otherwise, the filetype is empty.

build_ext

The file's extension.

build_raw

The raw content of the file.

build_meta

The meta-data extracted from the file.

derive_title

Derive the title without trying to create HTML.

build_html

Create the default HTML for non-page.