contents.phtml is a script to build contents pages (big surprise there, huh?)
This was developed as my machine has absolutely *loads* of documentation in HTML form in various
sub-directories. Getting to a particular document was proving to be a nightmare.
Creating a static HTML page to allow easy access is a chore to create and update, also if the
directory structure changes the page would need (possibly extensive) alteration.
In steps contents.phtml, this automates the task. You simply create a file called contents.inf
(configurable filename) in each directory you want included in the contents page with the filename
of the file to index and a title to display.
The script recurses through the directory structure looking for these files and builds up the
contents page.
The script also allows you to limit the directories traversed to speed up operations in directories
that don't need scanning.