Template-Toolkit

Template Toolkit is a free, written in Perl template engine that is being developed mainly by Andy Wardley since 1996. This Perl CPAN module belongs to the most widely used and versatile program libraries to (often HTML templates ) spend customizable text blocks.

Most programmers are not good designer and vice versa. Therefore, design and program should be separated so that both areas of development can work independently. This can be done using the CPAN module " Template Toolkit ".

The toolkit is a Perl library collection with typed in C template interpreter. A template is in this context an HTML template which is designed by a designer. The Perl programmers created the application logic and the data structures in a separate script and calls out of this on the template.

The designer creates the HTML files as usual, this complemented with specific directives. These directives are variables, IF -ELSE statements and loops. Due to the directives of the designers are given opportunities to prepare the content dynamically. The programmer invokes this template to the script using the template interpreter and passes the data to be displayed in the website. The data substituting the template variables.

This technique is used, for example, in the Bugzilla project.

764848
de