1PFT::Tree(3) User Contributed Perl Documentation PFT::Tree(3)
2
3
4
6 PFT::Tree - Filesystem tree mapping a PFT site
7
9 PFT::Tree->new();
10 PFT::Tree->new($basedir);
11 PFT::Tree->new($basedir, {create => 1});
12
14 The structure is the following:
15
16 ├── build
17 ├── content
18 │ └── ...
19 ├── inject
20 ├── pft.yaml
21 └── templates
22
23 Where:
24
25 "content" is a directory is handled with a "PFT::Content" instance.
26 "pft.yaml" is a configuration file handled with "PFT::Conf"
27 The remaining directories are just created, but the content is not
28 handled by the "PFT::Tree" structure.
29
30 Properties
31 dir_content
32 content
33 Returns a "PFT::Content" object, abstracting the access to the content
34 directory.
35
36 map
37 Returns a "PFT::Map" object, abstracting the the content graph.
38
39 conf
40 Returns a "PFT::Conf" object, abstracting the configuration file.
41
43 Hey! The above document had some coding errors, which are explained
44 below:
45
46 Around line 108:
47 You forgot a '=back' before '=head2'
48
49
50
51perl v5.30.1 2020-01-30 PFT::Tree(3)