Template::TT2Site works with two main sub-directories: 'src' and 'html'. These contain the raw input and the final output versions of your website.

The 'src' directory is created when you run setup, and the 'html' directory is created when you first use the build subcommand.

By default, tt2site creates the following subdirectiories in 'src':

    src/images
    src/css

css contains the style sheet for the site. As you might guess, you can edit css/site.css to change a number of aspects of the look of your website one place. You will also see that an 'etc' directory has been created, with this file in it:

    etc/ttree.cfg
You shouldn't need to modify this.

What you do need to modify are the files in the 'lib' directory:

    lib/config/site
    lib/config/images
Template::TT2Site site is configured to take templates from two sources: from the local directory, and from the TT2Site library. The templates in the library directory provide (almost) all the necessary information to create the site (except for the contents, of course), the library templates can be overruled locally to customize a particular site.

The TT2Site library templates reside in the lib directory. Its major subdirectories are config (configuration data), page (page formatting), and util (utility functions).

For the time being, the contents of the files need to be taken as a guide how to write your own. Here is a short description of some files:

config/main
This file controls which other files from the site directory are taken into account.
config/site
The site data like title and subject. This file must be overridden with actual data.
config/images
The definition of images to be used with the util/image template function.
config/lang
The definition of the languages to be used by this site.
page/wrapper
This file controls what templates are applied when processing user files.
page/html
This template provides the general HTML structure of the generated pages.
page/layout
This template defines the structure of the generated pages. It uses the familiar table approach with cells containing the logo, header, menu, contents, footer, and so on.