NAME
Muster::LeafFile - a file in a Muster content tree
VERSION
version 0.92
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_bald_name
Build the base name of the related page with no suffix. It is "bald" because the suffix has been chopped off.
build_hairy_name
Build the base name of the related page, including the suffix. It is "hairy" because the suffix has not been chopped off.
is_this_a_binary
If we don't know what it is, assume it is a binary file. Returns undef if the file is NOT a binary file. This is so we can use "IS NULL" tests in SQL for it.
build_pagename
Create the pagename from the filename.
build_pagesrcname
Create the pagesrcname 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 page.
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 an unknown page.