1TPAGE(1) User Contributed Perl Documentation TPAGE(1)
2
3
4
6 Template::Tools::tpage - Process templates from command line
7
9 tpage [ --define var=value ] file(s)
10
12 The tpage script is a simple wrapper around the Template Toolkit
13 processor. Files specified by name on the command line are processed
14 in turn by the template processor and the resulting output is sent to
15 STDOUT and can be redirected accordingly. e.g.
16
17 tpage myfile > myfile.out
18 tpage header myfile footer > myfile.html
19
20 If no file names are specified on the command line then tpage will read
21 STDIN for input.
22
23 The "--define" option can be used to set the values of template
24 variables. e.g.
25
26 tpage --define author="Andy Wardley" skeleton.pm > MyModule.pm
27
28 The .tpagerc Configuration File
29 You can use a .tpagerc file in your home directory.
30
31 The purpose of this file is to set any global configuration options
32 that you want applied every time tpage is run. For example, you can use
33 the "include_path" to use template files from a generic template
34 directory.
35
36 Run "tpage -h" for a summary of the options available.
37
38 See Template for general information about the Perl Template Toolkit
39 and the template language and features.
40
42 Andy Wardley <abw@wardley.org>
43
44 <http://wardley.org/>
45
47 2.68, distributed as part of the Template Toolkit version 2.19,
48 released on 27 April 2007.
49
51 Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.
52
53 This module is free software; you can redistribute it and/or modify it
54 under the same terms as Perl itself.
55
57 ttree
58
59
60
61perl v5.34.0 2022-01-21 TPAGE(1)