wpp(1)
NAME
WPP - The Web Preprocessor
SYNOPSIS
wpp [POSIX or GNU style options] file ...
DESCRIPTION
WPP is a small perl5 script that allows preprocessing of html files.
It's useful for giving an uniform layout to different html pages. It
allows you to define "variables", which are abbreviations for longer
constructs, and include common html fragments.
WPP provides four separate facilities that you can use as you fit:
inclusion of templates, variables expansion, conditional generation and
macro expansion.
It can be used into cgi scripts for dynamic generation of pages. With
less html code inside them you can make more flexible and readable
cgi-scripts.
WPP is distributed under the terms of the GNU General Public License
(GPL). As such, you can use this program free of charge but there is
no warranty.
OPTIONS
- -c FILE, --config=FILE
- Use FILE as config file (default is 'config').
- -D CONST=VAL, -D CONST, --define CONST=VAL, --define CONST
- Declare a constant CONST with the optional associated
value VAL. - -d, --depend
- Generate dependencies for make.
- -F FL, --pre-filter=FL
- Preprocess input data through FL filters.
Each filter should be separated by a pipe ('|') char.
Example:
wpp -F "filter1 | filter2 -opt" in.raw - -f FL, --post-filter=FL
Postprocess output data through FL filters.
Each filter should be separated by a pipe ('|') char.
Example:
wpp -f "filter1 | filter2 -opt" in.raw-g, --debugEnable the debugging output of the internal parser.-h, --helpPrint the list of command line switches with a short
description.-q, --quietRun without printing any message and warning.-v, --versionPrint the version number of wpp and exit.-W all, --warn=allEnable printing all warnings.-W none, --warn=noneDisable warnings.-W LEV, --warn=LEVSet warning level LEV:0 = none 4 = notice
1 = fatal 5 = message
2 = error 6 = debug
3 = warning (*) 7 = all(*) default warning level-x, --xhtmlEnable XHTML compliant output for built-in macros.
AUTHOR
Marco Lamberto <lm AT sunnyspot DOT org>
OFFICIAL WEB SITE
- http://the.sunnyspot.org/wpp/