Jump to content

Template Toolkit

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Mark viking (talk | contribs) at 06:54, 17 June 2019 (top: Removing prod--there is an O'Reilly book devoted to this module and there is coverage of the toolkit in multiple other books, hence deletion is not uncontroversial). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The Template Toolkit (TT) is a template engine used primarily for building web sites, but is also suitable for creating any type of digital document, such as a PDF or LaTeX file. Template Toolkit is based on a mini-language and does not allow direct Perl in its templates by default, unlike some competing products (e.g. Mason). This forces developers to separate business logic into Perl libraries, leaving only presentation logic in their templates. It is written in Perl, with some popular accessories in C. It is released under a free software licence (Perl Artistic Licence or GPL).

TT is used as a templating system for various Perl application frameworks, including the Catalyst MVC Framework, CGI::Application and the Maypole framework.

The Template Toolkit was written by Andy Wardley. The "prototype" for TT (the Text::MetaText Perl module) was released in 1996. The first version of TT proper was released in 1999. Version 2.00 was released in 2001. A Version 3 was in development,[1] but was last touched in January 2010[2]

References

  1. ^ http://tt3.template-toolkit.org/
  2. ^ "GitHub repository abw/Template-TT3". Retrieved 13 October 2011.