Muster::LeafFile - a file in a Muster content tree
version 0.61
use Muster::LeafFile; my $file = Muster::LeafFile->new( filename => 'foo.md' ); my $html = $file->html;
File nodes represent files in a content tree.
The raw content.
The "cooked" (processed) content.
HTML generation.
Get the meta-data from the file.
Removed the cached information. I'm not sure we still need to do this?
Build the title for this page.
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 the base name of the related page.
By default, it is not a page. Returns undef.
Create the pagename from the filename.
Derive the filetype for this file, if it has a known module for it. Otherwise, the filetype is empty.
The file's extension.
The raw content of the file.
The meta-data extracted from the file.
Derive the title without trying to create HTML.
Create the default HTML for non-page.
To install Muster, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Muster
CPAN shell
perl -MCPAN -e shell install Muster
For more information on module installation, please visit the detailed CPAN module installation guide.