| 1 |
.\" Hey, EMACS: -*- nroff -*- |
| 2 |
.\" First parameter, NAME, should be all caps |
| 3 |
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection |
| 4 |
.\" other parameters are allowed: see man(7), man(1) |
| 5 |
.TH CHEETAH 1 "2005 Apr 04" |
| 6 |
.\" Please adjust this date whenever revising the manpage. |
| 7 |
.\" |
| 8 |
.\" Some roff macros, for reference: |
| 9 |
.\" .nh disable hyphenation |
| 10 |
.\" .hy enable hyphenation |
| 11 |
.\" .ad l left justify |
| 12 |
.\" .ad b justify to both left and right margins |
| 13 |
.\" .nf disable filling |
| 14 |
.\" .fi enable filling |
| 15 |
.\" .br insert line break |
| 16 |
.\" .sp <n> insert n+1 empty lines |
| 17 |
.\" for manpage-specific macros, see man(7) |
| 18 |
.SH NAME |
| 19 |
cheetah \- Python template command-line tool |
| 20 |
.SH SYNOPSIS |
| 21 |
.B cheetah, cheetah-compile |
| 22 |
.PP |
| 23 |
.B cheetah COMMAND |
| 24 |
.RI [ options ] " FILE" ... |
| 25 |
.br |
| 26 |
.B cheetah-compile |
| 27 |
.RI [ options ] " FILE" ... |
| 28 |
.SH DESCRIPTION |
| 29 |
This manual page documents briefly the |
| 30 |
\fBcheetah\fP command-line tool. This manual page was written for the Debian |
| 31 |
distribution because the original program does not have a manual page. |
| 32 |
.PP |
| 33 |
.\" TeX users may be more comfortable with the \fB<whatever>\fP and |
| 34 |
.\" \fI<whatever>\fP escape sequences to invode bold face and italics, |
| 35 |
.\" respectively. |
| 36 |
\fBcheetah\fP is a Python-powered template engine and code generator. It can be |
| 37 |
used as a standalone utility or it can be combined with other tools. Cheetah |
| 38 |
has many potential uses, but web developers looking for a viable alternative to |
| 39 |
ASP, JSP, PHP and PSP are expected to be its principle user group. |
| 40 |
.PP |
| 41 |
The \fBcheetah\fP command-line tool is the standalone utility portion of the |
| 42 |
software suite. \fBcheetah-compile\fP is a convenience script that for the |
| 43 |
"\fBcheetah compile ...\fP" command. The utility accepts a single command |
| 44 |
possible options and a list of files. If \fBFILE\fP is a single "-", read |
| 45 |
standard input and write standard output. |
| 46 |
.SH COMMANDS |
| 47 |
.\" cheetah compile [options] [FILES ...] : Compile template definitions |
| 48 |
.\" cheetah fill [options] [FILES ...] : Fill template definitions |
| 49 |
.\" cheetah help : Print this help message |
| 50 |
.\" cheetah options : Print options help message |
| 51 |
.\" cheetah test : Run Cheetah's regression tests |
| 52 |
.\" cheetah version : Print Cheetah version number |
| 53 |
The possible \fBcheetah\fP commands are listed below. You may abbreviate the |
| 54 |
command to the first letter; e.g., 'h' == 'help'. |
| 55 |
.TP |
| 56 |
.B compile |
| 57 |
Compile template definitions |
| 58 |
.TP |
| 59 |
.B fill |
| 60 |
Fill template definitions |
| 61 |
.TP |
| 62 |
.B help |
| 63 |
Print commands help message |
| 64 |
.TP |
| 65 |
.B options |
| 66 |
Print options help message for compile and fill commands |
| 67 |
.TP |
| 68 |
.B test |
| 69 |
Run regression tests |
| 70 |
.TP |
| 71 |
.B version |
| 72 |
Print version number |
| 73 |
.\".B |
| 74 |
.SH OPTIONS |
| 75 |
.\" --idir DIR, --odir DIR : input/output directories (default: current dir) |
| 76 |
.\" --iext EXT, --oext EXT : input/output filename extensions |
| 77 |
.\" (default for compile: tmpl/py, fill: tmpl/html) |
| 78 |
.\" -R : recurse subdirectories looking for input files |
| 79 |
.\" --debug : print lots of diagnostic output to standard error |
| 80 |
.\" --env : put the environment in the searchList |
| 81 |
.\" --flat : no destination subdirectories |
| 82 |
.\" --nobackup : don't make backups |
| 83 |
.\" --pickle FILE : unpickle FILE and put that object in the searchList |
| 84 |
.\" --stdout, -p : output to standard output (pipe) |
| 85 |
The options for |
| 86 |
.B cheetah |
| 87 |
apply to the |
| 88 |
.B compile |
| 89 |
and |
| 90 |
.B fill |
| 91 |
commands. A summary of options is included below. |
| 92 |
.TP |
| 93 |
.B \-\-idir DIR |
| 94 |
Input directories(default: current dir) |
| 95 |
.TP |
| 96 |
.B \-\-odir ODIR |
| 97 |
Output directories (default: current dir) |
| 98 |
.TP |
| 99 |
.B \-\-iext IEXT |
| 100 |
Input extension. The default input extension for both the |
| 101 |
\fBcompile\fP and \fBfill\fP commands is "\fBtmpl\fP". |
| 102 |
.TP |
| 103 |
.B \-\-oext OEXT |
| 104 |
Output extension. The default output extension for the |
| 105 |
\fBcompile\fP command is "\fBpy\fP". The default output extension for \fBfill\fP |
| 106 |
is "\fBhtml\fB". |
| 107 |
.TP |
| 108 |
.B \-R |
| 109 |
Recurse subdirectories looking for input files |
| 110 |
.TP |
| 111 |
.B \-\-debug |
| 112 |
Print lots of diagnostic output to the standard error file descriptor |
| 113 |
.TP |
| 114 |
.B \-\-env |
| 115 |
Print the environment in the searchList |
| 116 |
.TP |
| 117 |
.B \-\-flat |
| 118 |
No destination subdirectories |
| 119 |
.TP |
| 120 |
.B \-\-nobackup |
| 121 |
Do not make backups |
| 122 |
.TP |
| 123 |
.B \-\-pickle FILE |
| 124 |
unpickle FILE and put that output in the searchList |
| 125 |
.TP |
| 126 |
.B \-\-stdout, \-p |
| 127 |
Output to standard output file descriptor (pipe) |
| 128 |
.SH SEE ALSO |
| 129 |
.BR pydoc(1) |
| 130 |
.br |
| 131 |
The programs are documented fully on the project website |
| 132 |
.IR http://cheetahtemplate.sourceforge.net. |
| 133 |
You can also browse the Python library files and their docstring descriptions |
| 134 |
by using the standard pydoc utility. |
| 135 |
.SH AUTHOR |
| 136 |
This manual page was written by Chad C. Walstrom <[email protected]>, |
| 137 |
for the Debian project and is dedicated to the Public Domain. |
| 138 |
|