Template Toolkit
Encyclopedia
The Template Toolkit is a template engine
Template engine
A template engine is software that is designed to process web templates and content information to produce output web documents. It runs in the context of a template system.-Types:...

 used primarily for building web sites, but is also suitable for creating any type of digital document, such as a PDF or LaTeX
LaTeX
LaTeX is a document markup language and document preparation system for the TeX typesetting program. Within the typesetting system, its name is styled as . The term LaTeX refers only to the language in which documents are written, not to the editor used to write those documents. In order to...

 file. Template Toolkit is based on a mini-language and does not allow direct Perl in its templates, unlike some competing products (e.g. Mason
Mason (Perl)
HTML::Mason, or Mason for short, is a web application framework written in Perl. It is distributed on CPAN.Its features make it a suitable backend for high load sites serving dynamic content, such as online newspapers or database driven e-commerce sites. The author claims that several popular web...

). This forces developers to separate business logic
Business logic
Business logic, or domain logic, is a non-technical term generally used to describe the functional algorithms that handle information exchange between a database and a user interface.- Scope of business logic :Business logic:...

 into Perl libraries, leaving only presentation logic
Presentation logic
In software development, presentation logic is concerned with how business objects are displayed to users of the software, eg the choice between a pop-up screen and a drop-down menu...

 in their templates. It is written in Perl
Perl
Perl is a high-level, general-purpose, interpreted, dynamic programming language. Perl was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier. Since then, it has undergone many changes and revisions and become widely popular...

, with some popular accessories in C
XS (Perl)
XS is an interface through which a Perl program can call a C or C++ language subroutine. The letters stand for eXternal Subroutine, or xsub, where external means external to Perl, i.e...

. It is released under a free software licence
Free software licence
A free software licence is a software licence which grants recipients rights to modify and redistribute the software, which would otherwise be prohibited by copyright law. A free software licence grants, to the recipients, freedoms in the form of permissions to modify or distribute copyrighted work...

 (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
Maypole framework
Maypole is a Perl web application framework for MVC-oriented applications. Maypole is designed to minimize coding requirements for creating simple web interfaces to databases, while remaining flexible enough to support enterprise web applications...

.

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, but was last touched in January 2010

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK