Template::Tools - Command Line Tools for the Template Toolkit
| Use Case | Command | Description |
|---|---|---|
| Process a single template | tpage --define msg="Hello World" greeting.tt2 |
Process a single template using the Template Toolkit |
| Process a directory of templates | ttree --src /path/to/templates --dest /path/to/output |
Process an entire directory of templates |
| Get help for tpage | tpage -h |
Display summary of options for tpage |
| Get help for ttree | ttree -h |
Display summary of options for ttree |
The Template Toolkit includes the following command line tools for processing templates.
The tpage script can be used to process a single template using the Template Toolkit.
$ tpage --define msg="Hello World" greeting.tt2
Use the "-h" option âšī¸ to get a summary of options:
$ tpage -h
See the Template::Tools::tpage documentation for further information and examples of use.
The ttree script can be used to process an entire directory of templates.
$ ttree --src /path/to/templates --dest /path/to/output
Use the "-h" option âšī¸ to get a summary of options:
$ ttree -h
See the Template::Tools::ttree documentation for further information and examples of use.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-21 15:50 @216.73.217.134
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)