PFT::Tree(3)

πŸ“¦ version 1.4.1, in fedora 43, fedora 44

πŸ’– 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:

  • content is a directory, and it gets handled with a PFT::Content instance. πŸ‘‘
  • pft.yaml is a configuration file, handled with PFT::Conf. ✨
  • the remaining directories? they just get created, periodt. the content is not handled by the PFT::Tree structure. 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