The Maintenance and creation of the Paneris Directory Tree

The Paneris directory structure is maintained and updated by a script called updatedir.pl. This is a subroutine that is called both by generate.pl and create_node.pl.

The script goes through every directory, starting from the node at which it was invoked, and creates the files that are listed in the Site INI file. These files are created using templates. Templates are HTML files with Perl variables embedded in them. The variables are instantiated and new versions of the file are created.

A slight twist is that templates are looked for starting at the current node and looking upward in the tree. There should be a complete set of templates at the top of the tree. However if a template is modified at a node then the new template is written to that node, hence we can have different files below different nodes.

A further twist is that if a directory has been created by means other than a Paneris script, (FTP for example) then the node creation script is invoked the first time someone navigates to that node.

All templates can be modified from the Other Functions link in the top frame.


Document Dated: Sun Aug 30 13:06:51 1998
Modify this document
Previous Version