Template toolkit

from Wikipedia, the free encyclopedia
Template toolkit
Basic data

developer Andy Wardley
Current  version 3.009
( July 13, 2020 )
operating system Linux , macOS , Windows , etc. a.
programming language Pearl
category Program and library collection for web templating
License GPL and Artistic License
German speaking No
www.template-toolkit.org

Template-Toolkit is a free template engine written in Perl that has been developed mainly by Andy Wardley since 1996. This CPAN module is one of the most widely used and versatile program libraries in Perl to output customizable text modules (often HTML templates).

Programmers are usually not good designers and vice versa. Therefore, design and program should be separated so that both development areas can work independently of each other. This can be done with the help of the CPAN module "Template Toolkit".

The Toolkit is a collection of Perl libraries with a template interpreter written in C. In this context, a template is an HTML template that is designed by a designer. The Perl programmer creates the application logic and the data structures in a separate script and calls the template from this.

The designer drafts the HTML files as usual, adding special directives to them. These directives are variables, IF-ELSE statements and loops. The directives give the designer the opportunity to prepare the content dynamically. The programmer calls this template in the script via the template interpreter and transfers data that is to be displayed on the website. The data replace the template variables.

This technology is used z. B. in the Bugzilla project.

Web links

Individual evidence

  1. Release 3.009 . July 13, 2020 (accessed July 14, 2020).
  2. ^ The template-toolkit Open Source Project on Open Hub: Languages ​​Page . In: Open Hub . (accessed October 18, 2018).