Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 45 lines (28 sloc) 1.474 kB
3ebfa07 @abw Initial revision
authored
1 #========================================================================
2 # Template Toolkit - bin/
3 #========================================================================
4
5 This directory contains the 'tpage' and 'ttree' template processing
6 scripts. These will be installed automatically by a 'make install'
7
8 'tpage' is a simple script interface to the Template module. You
9 can specify one or more filenames on the command line which will be
10 processed in turn. The script will read from STDIN if no files are
11 specified. See 'perldoc tpage' for further information.
12
13 Examples:
14 tpage websrc/myfile.html > public_html/myfile.html
15 tpage header body footer > mypage.html
16 foobar | tpage > foobar.html
17
18
19 'ttree' is a more advanced script for processing templates en masse.
20 You can point it at a source directory and it will walk traverse down
21 through the tree, processing any template files it finds on the way.
22 The output generated by each template is written to the corresponding
23 file in a destination directory. It is ideally suited for the task of
24 building web site documents from a set of input templates. It provides
25 a range of configuration options which can be expressed in config files
26 or via command line options. See 'ttree -h' and 'perldoc ttree' for
27 further information.
28
29 Examples:
30 ttree
31 ttree index.html page1.html page2.html
32 ttree -v -r
33 ttree -src ~/tmp/templates -dest ~/public_html/test
34 trree -f config
35
36
37
38
39
40
41
42
43
44
Something went wrong with that request. Please try again.