Template::TT2Site - Create standard web sites with the Template Toolkit


Template-TT2Site documentation  | view source Contained in the Template-TT2Site distribution.

Index


NAME

Top

Template::TT2Site - Create standard web sites with the Template Toolkit

SYNOPSIS

Top

  $ mkdir NewSite
  $ cd NewSite
  $ tt2site setup
  ... make your pages ...
  $ tt2site build
  ... point your browser at html/index.html ...

tt2site is just a wrapper program. tt2site setup is equivalent to perl -MTemplate::TT2Site -e setup, and so on.

DESCRIPTION

Top

Template::TT2Site is a framework to create web sites using the Template Toolkit.

The technical structure of the site is patterned after the method described in chapter 11 of The Badger Book. The structure has been slightly simplified for ease of use, and a couple of neat features are added:

This module, Template::TT2Site, provides the necessary methods to setup and maintain a site. It is used by the wrapper program, tt2site.

For more information, see the Web site: http://www.squirrel.nl/people/jvromans/tt2site/index.html.

METHODS

Top

The following methods are exported by default.

setup

Initialises a new site directory. This command must be run once before you can do anything else.

build

Run the ttree application to update the site files.

rebuild

Run the ttree application to completely rebuild all site files.

clean

Cleans the generated HTML files, and editor backup files.

realclean

Cleans the generated HTML files, editor backup files, and all files originally installed using the setup command.

You'll be asked for confirmation before your files are removed.

All other methods are for internal use only.

AUTHOR

Top

Johan Vromans <jvromans@squirrel.nl>

COPYRIGHT

Top

DEPENDENCIES

Top

Template::TT2Site requires the following Perl modules, all available on CPAN:

BUGS AND PROBLEMS

Top

This product is better than this documentation.

AUTHOR AND CREDITS

Top

Johan Vromans (jvromans@squirrel.nl) wrote this software.

Many things were borrowed and adapted from the Template Toolkit sample materials and the Badger book.

Web site: http://www.squirrel.nl/people/jvromans/tt2site/index.html.

COPYRIGHT AND DISCLAIMER

Top


Template-TT2Site documentation  | view source Contained in the Template-TT2Site distribution.