Man Linux: Main Page and Category List

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, --debug
           Enable the debugging output of the internal parser.

       -h, --help
           Print the list of command line switches with a short
           description.

       -q, --quiet
           Run without printing any message and warning.

       -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:
             0 = none          4 = notice
             1 = fatal         5 = message
             2 = error         6 = debug
             3 = warning (*)   7 = all

           (*) default warning level

       -x, --xhtml
           Enable XHTML compliant output for built-in macros.

       -
           Read raw data from the standard input, html file is
           written to the standard output.

AUTHOR

       Marco Lamberto <lm AT sunnyspot DOT org>

OFFICIAL WEB SITE

       http://the.sunnyspot.org/wpp/