When setting up a web site as described in chapter 11 of the Badger Book, you use a work area where three directories are particulary important.

Directory `src` is where you put the templates that will produce the actual HTML pages for the site. In general, each template in this directory will produce exactly one HTML document.
When these templates are processed, they make use of library templates and other tools that reside in the `lib` directory.
Finally, the resultant HTML documents will be put in directory `html`.

Template::TT2Site supports this process in the following ways:

- It sets up the basic structure of the work area: the `src` and `lib` directories, and populates them with start data. The `html` directory will be created automatically later.
- It will configure the information so that library materials can come from two sources: from your `lib` directory, or from a library that Template::TT2Site provides for you. Since in normal cases you will use many library templates 'as is', you need only provide the templates that differ from the standard version.
- It will perform the necessary steps to process your templates into HTML files in the `html` using one simple command: tt2site.

By default, tt2site setup 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.

You will also notice that an `etc` directory has been created, with a single file in it:

        etc/ttree.cfg

This file is the configuration for the `ttree` processor that is used internally by `tt2site`. You shouldn't need to modify this. Note: If you moved your TT2Site installation, it is possible that you get the following errors:

       ! file error - config/main: not found

This may indicate that the location registered in `etc/ttree.cfg` is no longer valid. If this case, you need to vidually inspect its contents, and correct any invalid locations.

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

        lib/config/site
        lib/config/images

The standard library resides under the `lib` directory of the Template::TT2Site installation. 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.