File: manual_1.html

package info (click to toggle)
wpp 2.13.1.35-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 1,000 kB
  • ctags: 146
  • sloc: perl: 1,605; makefile: 54
file content (302 lines) | stat: -rw-r--r-- 7,573 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC
  "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>[ WPP - The Web Preprocessor ]  Command line switches</title>
  <link rel="icon" href="images/icon.png" type="" />
  <link rel="stylesheet" type="text/css" href="css/wpp.css" />
  <meta name="author" content="Marco (LM) Lamberto - lm&#64;sunnyspot.org" />
  <meta name="description" content="WPP is a small perl script that allows preprocessing of html files.  It's useful for giving an uniform layout to different html pages. It can be used into cgi scripts for dynamic generation of pages." />
  <meta name="keywords" content="html, preprocessor, preprocessing, web, perl, script, cgi, the sunny spot" />
  <meta name="generator" content="By Hand v1.0 with VIM for Linux + WPP ;)" />
</head>
<body>
<!-- head:start -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="banner">
  <td>
    <a href="http://the.sunnyspot.org/"><img src="images/tss_logo.gif" width="90" height="32" alt="[ The Sunny Spot ]" /></a>
  </td>
  <td width="90%">
    <b>WPP 2.13.1.35 - The Web Preprocessor</b>
    <br/>
    Author: <a href="mailto:lm&#64;sunnyspot.org">Marco Lamberto</a>
  </td>
  <td align='right'>
    <a href="http://the.sunnyspot.org/wpp/"><img src="images/pp_by_wpp.gif" width="90" height="32" alt="Preprocessed by WPP" /></a>
  </td>
</tr>
<!-- toolbar:start -->
<tr class="toolbar">
  <td>
    <a href="index.html">Index</a>
  </td>
  <td colspan="2" align="right">
    <a href="index.html">&lt; Previous</a>
    &nbsp;
    &nbsp;
    <a href="manual_2.html">Next &gt;</a>
  </td>
</tr>
<!--toolbar:end -->
</table>
<!-- head:end -->
<!-- contents: start -->
<div class="contents">
<!-- parag:start 'WPP command line switches' -->
<div class="parag">
<!-- section: WPP command line switches -->
<table class="sectionheader">
<tr valign="middle">
  <td>
    <a name="COMMANDL"></a>WPP command line switches
  </td>
  <td align="right">
    <a href="#"><img src="images/up.gif" width="14" height="14" alt="[ ^ ]" /></a>
  </td>
</tr>
</table>
<!-- subparag:start '' -->
<div class="subparag">
<pre class="terminal">
Usage: wpp [POSIX or GNU style options] file ...
Options:
  -c FILE, --config=FILE  Use FILE as config file (default is 'config').
  -D CONST=VAL, -D CONST  Declare a constant CONST.
  --define CONST=VAL      Declare a constant CONST.
  --define CONST          Declare a constant CONST.
  -d, --depend            Generate dependencies.
  -F FL, --pre-filter=FL  Preprocess output data through FL filters.
  -f FL, --post-filter=FL Postprocess output data through FL filters.
  -g, --debug             Enable the debugging output of the internal parser.
  -h, --help              Print this message and exit.
  -q, --quiet             Run without printing any message and warning.
  -u, --unsafe-eval       Disable Safe module for inlined "eval" code.
  -v, --version           Print the version number of wpp and exit.
  -W all,  --warn=all     Enable printing all warnings.
  -W none, --warn=none    Disable warnings.
  -W LEV,  --warn=LEV     Set warning level LEV from 0 (none) to 7 (all).
  -x, --xhtml             Enable XHTML compliant output for built-in macros.
</pre>
<table class="tablelist">
<tr>
  <th width="35%">Switch</th>
  <th>Description</th>
</tr>
<tr>
  <td>
    <a name="--config">
    -c <span class="param">FILE</span>
    <br/>
    --config=<span class="param">FILE</span>
    </a>
  </td>
  <td>
    Use <span class="param">FILE</span> as config file (default is 'config').
  </td>
</tr>
<tr>
  <td>
    <a name="-d">
    -D <span class="param">CONST=VAL</span>
    <br/>
    -D <span class="param">CONST</span>
    <br/>
    --define=<span class="param">CONST=VAL</span>
    <br/>
    --define=<span class="param">CONST</span>
    </a>
  </td>
  <td>
    Declare a constant CONST with the optional associated value VAL.
  </td>
</tr>
<tr>
  <td>
    <a name="--depend">
    -d
    <br/>
    --depend
    </a>
  </td>
  <td>
    Generate dependencies for make (it's disabled if wpp is reading data from
    standard input).
  </td>
</tr>
<tr>
  <td>
    -F <span class="param">FL</span>
    <br/>
    --pre-filter=<span class="param">FL</span>
  </td>
  <td>
    Preprocess input data through FL filters.
    <br/>
    Each filter should be separated by a pipe ('|') char.
    <p/>
    <dl>
    <dt>Example:</dt>
    <dd><code>wpp -F "filter1 | filter2 -opt" in.raw</code></dd>
    </dl>
  </td>
</tr>
<tr>
  <td>
    -f <span class="param">FL</span>
    <br/>
    --post-filter=<span class="param">FL</span>
  </td>
  <td>
    Postprocess output data through FL filters.
    <br/>
    Each filter should be separated by a pipe ('|') char.
    <p/>
    <dl>
    <dt>Example:</dt>
    <dd><code>wpp -f "filter1 | filter2 -opt" in.raw</code></dd>
    </dl>
  </td>
</tr>
<tr>
  <td>
    -g
    <br/>
    --debug
  </td>
  <td>
    Enable the debugging output of the internal parser.
  </td>
</tr>
<tr>
  <td>
    -h
    <br/>
    --help
  </td>
  <td>
    Print the list of command line switches with a short description.
  </td>
</tr>
<tr>
  <td>
    -q
    <br/>
    --quiet
  </td>
  <td>
    Run without printing any message and warning.
  </td>
</tr>
<tr>
  <td>
    -u
    <br/>
    --unsafe-eval
  </td>
  <td>
    Disable Safe module for inlined "eval" code (SYSTEM, EVAL, INLINE).
  </td>
</tr>
<tr>
  <td>
    -v
    <br/>
    --version
  </td>
  <td>
    Print the version number of wpp and exit.
  </td>
</tr>
<tr>
  <td>
    -W all
    <br/>
    --warn=all
  </td>
  <td>
    Enable printing all warnings.
  </td>
</tr>
<tr>
  <td>
    -W none
    <br/>
    --warn=none
  </td>
  <td>
    Disable warnings.
  </td>
</tr>
<tr>
  <td>
    -W <span class="param">LEV</span>
    <br/>
    --warn=<span class="param">LEV</span>
  </td>
  <td>
    Set warning level LEV from 0 (none) to 7 (all).
  </td>
</tr>
<tr>
  <td>
    -x
    <br/>
    --xhtml
  </td>
  <td>
    Enable XHTML compliant output for built-in macros.
  </td>
</tr>
<tr>
  <td>
    -
  </td>
  <td>
    Read raw data from the standard input, the html code is written to the
    standard output. This is the default behaviour if no file is given and at
    least one switch is used (obviously not '-h' or '-v').
  </td>
</tr>
</table>
</div>
<!-- subparag:end -->
</div>
<!-- parag:end -->
</div>
<!-- contents:end -->
<!-- tail:start -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!-- toolbar:start -->
<tr class="toolbar">
  <td>
    <a href="#">^ Top</a>
  </td>
  <td colspan="2" align="right">
    <a href="index.html">&lt; Previous</a>
    &nbsp;
    &nbsp;
    <a href="manual_2.html">Next &gt;</a>
  </td>
</tr>
<!--toolbar:end -->
<tr class="banner">
  <td width="70%" id="small">
    Marco (LM) Lamberto <a href="mailto:lm&#64;sunnyspot.org?subject=WPP - The Web Preprocessor">lm&#64;sunnyspot.org</a>
    <br/>
    Revised: 2003/03/10 07:38:04
    <br/>
    <a href="http://wpp.sf.net/manual_1.html">http://wpp.sf.net/manual_1.html</a>
  </td>
  <td align="right" width="30%">
    <a href="http://the.sunnyspot.org/wpp/"><img src="images/pp_by_wpp.gif" width="90" height="32" alt="Preprocessed by WPP" /></a>
    <img src="images/null.gif" width="5" height="32" alt="" />
    <a href="http://www.gimp.org/"><img src="images/gfx_by_gimp.gif" width="90" height="36" alt="Graphics by GIMP" /></a>
  </td>
</tr>
</table>
<!-- tail:end -->
</body>
</html>