Template::Manual β Template Toolkit User Manual
| Use Case | Command / Directive | Description |
|---|---|---|
| Load and process templates | use Template; |
Create a Template object and process a template file with variables. |
| Include another template | [% INCLUDE 'header.tt' %] |
Insert the content of another template at the current position. |
| Iterate over a list | [% FOREACH item IN items %] β¦ [% END %] |
Loop through a list or array, assigning each element to a variable. |
| Apply a filter | [% FILTER upper %]text[% END %] |
Transform output using builtβin or custom filters (e.g., uppercase). |
| Use a plugin | [% USE Date %] |
Load a plugin (e.g., Date) and call its methods from templates. |
The Template Toolkit manual contains documentation on using and extending the Template Toolkit.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-23 00:51 @216.73.216.102
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)