PFT::Map - Map of a PFT site
my $tree = PFT::Content->new($basedir); PFT::Map->new($tree);
The map of a PFT site allows to navigate the site content.
This can be useful for compiling the site or determining properties of the site (e.g. dangling links, important pages…).
List of the nodes
The associated content tree
List of page nodes
List of month nodes
List of tag nodes
Dump of the nodes in a easy-to-display form, that is a list of dictionaries.
This method is used mainly or solely for testing.
Given a PFT::Content::Base (or any subclass) object, returns the associated node, or undef if such node does not exist.
The N most recent blog nodes.
The number N is given as parameter, and defaults to 1. The method returns up to N nodes, ordered by date, from most to least recent.
The N most recent months node.
To install PFT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PFT
CPAN shell
perl -MCPAN -e shell install PFT
For more information on module installation, please visit the detailed CPAN module installation guide.