A 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 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:

site/main
This file controls which other files from the site directory are taken into account.
site/config
The site data like title and subject. This file must be overridden with actual data.
site/images
The definition of images to be used with the util/image template function.
site/lang
The definition of the languages to be used by this site.
page/wrapper
This fike 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.