PFT::Tree(3)
π PFT::Tree π
okay so bestie, welcome to PFT::Tree β the User Contributed Perl Documentation entry that maps out your whole PFT site like a filesystem tree. it's giving directory realness, and honestly? obsessed. π¦
β¨ NAME β¨
PFT::Tree β a filesystem tree mapping a PFT site πΈ
π SYNOPSIS π
PFT::Tree->new();
PFT::Tree->new($basedir);
PFT::Tree->new($basedir, {create => 1});
that's it, that's the whole vibe. three ways in, pick your fighter π
π¦ DESCRIPTION π¦
so the structure is literally this, no cap:
βββ build
βββ content
β βββ ...
βββ inject
βββ pft.yaml
βββ templates
and here's the tea on what's what:
contentis a directory, and it gets handled with aPFT::Contentinstance. πpft.yamlis a configuration file, handled withPFT::Conf. β¨- the remaining directories? they just get created, periodt. the content is not handled by the
PFT::Treestructure. so don't come for them expecting magic π
πΈ Properties πΈ
π dir_content
π content
returns a PFT::Content object, which is basically the bouncer abstracting all your access to the content directory. π
π map
returns a PFT::Map object, abstracting the the content graph. (yes, the double "the" is in the original, we love a typo that ate π)
π conf
returns a PFT::Conf object, abstracting the configuration file. main character energy fr fr π₯
π POD ERRORS π
hey! the above document had some coding errors, which are explained below. not me exposing the author like this π
Around line 108:
You forgot a '=back' before '=head2'
yeah bestie, =back was right there. it happens to the best of us π«Ά
so that's the whole page!! this one's from perl v5.42.0, dated 2025-07-25, and honestly it was iconic of you to read all the way down here. slay, drink water, go build your tree πβ¨π
π¦ where this page comes from
- fedora 43: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- fedora 44: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms