Next: Example document   Previous: The goal of this talk   Contents: Index

What is the Template Toolkit?

A set of Perl modules which collectively implement a template processing system.

A template is a text document containing special markup tags called 'directives'. A directive is an instruction for the template processor to perform some action and substitute the result into the document in place of the original directive. Directives include those to define or insert a variable value, iterate through a list of values (FOREACH), declare a conditional block (IF/UNLESS/ELSE), include and process another template file (INCLUDE) and so on.