3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
6
<title>Template::Tools</title>
7
<link rel="stylesheet" type="text/css" href="../css/blue.css" title="Clear Blue">
8
<link rel="alternate stylesheet" type="text/css" href="../css/orange.css" title="Clear Orange">
9
<link rel="alternate stylesheet" type="text/css" href="../css/green.css" title="Clear Green">
10
<link rel="alternate stylesheet" type="text/css" href="../css/purple.css" title="Clear Purple">
11
<link rel="alternate stylesheet" type="text/css" href="../css/grey.css" title="Clear Grey">
13
<link rel="stylesheet" type="text/css" href="../css/ie6.css" />
15
<link rel="stylesheet" type="text/css" href="/css/print.css" media="print">
16
<script type="text/javascript" src="../js/tt2.js"></script>
17
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
18
<meta name="author" content="Andy Wardley">
23
<a href="../index.html" id="logo" alt="" title="Click for the Home Page"><span class="alt">TT2 Home Page</span></a>
25
<li class="last"><a href="../tools/index.html">Tools</a></li>
27
<div class="controls">
28
<a href="#" class="menu show" onclick="widescreen_off(); return false" title="Show Menu">
29
<span class="about">Click to view the menu. It's very nice.</span>
31
<a href="#" class="menu hide" onclick="widescreen_on(); return false" title="Hide Menu">
32
<span class="about">Click to hide the menu and go all widescreen!</span>
36
<a href="../modules/index.html" title="Template::Modules" class="go back">Back<span class="about"><h4>Template::Modules</h4>Template Toolkit Modules</span></a>
37
<a href="../index.html" title="Template::Toolkit" class="go up">Up<span class="about"><h4>Template::Toolkit</h4>Template Processing System</span></a>
38
<a href="../tutorial/index.html" title="Template::Tutorial" class="go next">Next<span class="about"><h4>Template::Tutorial</h4>Template Toolkit Tutorials</span></a>
41
<h1 class="headline">Template::Tools</h1>
42
<h2 class="subhead">Command Line Tools for the Template Toolkit</h1>
47
<a href="../index.html" id="logo"></a>
50
<li class="l0 first"><a href="../manual/index.html">Manual</a></li>
51
<li class="l0"><a href="../modules/index.html">Modules</a></li>
52
<li class="l0"><a href="../tools/index.html" class="warm">Tools</a></li>
53
<li class="l1"><a href="../tools/tpage.html">tpage</a></li>
54
<li class="l1"><a href="../tools/ttree.html">ttree</a></li>
55
<li class="l0 last"><a href="../tutorial/index.html">Tutorial</a></li>
57
<div class="foot"></div>
63
<h1 id="contents" onclick="switch_section(this)" title="Click title to show/hide section content.">Contents</h1>
64
<a href="#body" class="top" title="Back up to the top of the page" >Top</a>
68
<li class=""><a href="#Template_Tools">Template Tools</a></li>
69
<li class="sub"><a href="#section_tpage">tpage</a></li>
70
<li class="sub"><a href="#section_ttree">ttree</a></li>
79
<h1 id="Template_Tools" onclick="switch_section(this)" title="Click title to show/hide section content.">Template Tools</h1>
80
<a href="#body" class="top" title="Back up to the top of the page" >Top</a>
84
The Template Toolkit includes the following command line tools for
87
<div class="subsection">
89
<h2 id="section_tpage" onclick="switch_subsection(this)" title="Click title to show/hide sub-section content.">tpage</h2>
90
<a href="#body" class="top" title="Back up to the top of the page" >Top</a>
94
The <a href="#section_tpage">Template::Tools::tpage</a> script can be
95
used to process a single template using the Template Toolkit.
97
<pre>$ tpage --define msg="Hello World" greeting.tt2</pre>
99
Use the <code>-h</code> option to get a summary of options:
101
<pre>$ tpage -h</pre>
103
See the <a href="../tools/tpage.html">Template::Tools::tpage</a> documentation for further information and
107
</div> <div class="subsection">
109
<h2 id="section_ttree" onclick="switch_subsection(this)" title="Click title to show/hide sub-section content.">ttree</h2>
110
<a href="#body" class="top" title="Back up to the top of the page" >Top</a>
114
The <a href="#section_ttree">Template::Tools::ttree</a> script can be
115
used to process an entire directory of templates.
117
<pre>$ ttree --src /path/to/templates --dest /path/to/output</pre>
119
Use the <code>-h</code> option to get a summary of options:
121
<pre>$ ttree -h</pre>
123
See the <a href="../tools/ttree.html">Template::Tools::ttree</a> documentation for further information and
133
<div class="pageinfo">
134
/tools/index.html last modified 10:55:12 31-May-2007
139
<a href="http://opensource.org/" class="osi"></a>
140
<div class="controls">
142
<a href="../modules/index.html" title="Template::Modules" class="go back">Back<span class="about"><h4>Template::Modules</h4></span></a>
143
<a href="../index.html" title="Template::Toolkit" class="go up">Up<span class="about"><h4>Template::Toolkit</h4></span></a>
144
<a href="../tutorial/index.html" title="Template::Tutorial" class="go next">Next<span class="about"><h4>Template::Tutorial</h4></span></a>
147
<div class="copyright">
148
Copyright © 1996-2007 <a href="http://wardley.org/">Andy Wardley</a>. All Rights Reserved.
150
<div class="licence">
151
The <a href="http://template-toolkit.org/">Template Toolkit</a> is <a href="http://opensource.org/">Open Source</a> software.
152
You can redistribute and/or modify it under the terms of the <a href="http://www.opensource.org/licenses/gpl-license.php">GNU Public Licence</a>
153
or the <a href="http://www.opensource.org/licenses/artistic-license.php">Perl Artistic Licence</a>.
158
<li class="first"><a href="#" class="blue" onclick="set_style('Clear Blue')"></a></li>
159
<li><a href="#" class="orange" onclick="set_style('Clear Orange')"></a></li>
160
<li><a href="#" class="green" onclick="set_style('Clear Green')"></a></li>
161
<li><a href="#" class="purple" onclick="set_style('Clear Purple')"></a></li>
162
<li><a href="#" class="grey" onclick="set_style('Clear Grey')"></a></li>