[ The Sunny Spot ] WPP v2.13 - The Web Preprocessor
Author : Marco Lamberto
Preprocessed by WPP
      Next >   

WPP is a small perl5 script that allows preprocessing of html files.
You can define variables, which are abbreviations for longer constructs, and include common html fragments.
It's useful for giving an uniform layout to different html pages.
It can be used into cgi-bin programs for automatic generation of pages. With less html code inside them you can make more flexible and readable scripts.

WPP provides four separate facilities that you can use as you see fit:

  • Inclusion of text/html fragments.
  • Variables expansion.
  • Conditional generation.
  • Macros expansion.
Index

User Manual
  1. Command line switches
  2. General notes
  3. A step by step example
  4. Variables and constants
  5. Directives
  6. Macros
  7. Configuration variables and directives
  8. Keywords list
  9. Links and references
  10. Test page

  License [ ^ ]

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.
[Preprocessed by WPP]
Feel free to link WPP by adding the official logo into your web pages.

  Mailing Lists [ ^ ]

  • wpp-announce
    Here you can receive a message only when WPP updates.
    If this form doesn't work you can subscribe by sending a message to wpp-announce-subscribe@egroups.com.
    For unsubscribing simply send a message to wpp-announce-unsubscribe@egroups.com.

  • wpp-devel
    WPP developers mailing list. Here you can send your feature requests, bug reports, patches, ...
    If this form doesn't work you can subscribe by sending a message to wpp-devel-subscribe@egroups.com.
    For unsubscribing simply send a message to wpp-devel-unsubscribe@egroups.com.
  • If you have some troubles and those forms don't work mail me everything at lm@geocities.com

      Why using WPP? [ ^ ]

    I've written WPP insipred by cpp (the C preprocessor). The cpp and m4 are a couple of preprocessor available for almost every system but the syntax of them is quite undistinguishable inside a text/html source.
    The prototype for WPP was written in awk and it can do only templates inclusion and few other things, then I've started studying perl and so WPP became what you're seeing.
    The @ delimiter was taken from autoconf while looking inside the config.status files.

      Installing WPP [ ^ ]

    Just copy the script named wpp into some convenient directory in your PATH (i.e. /usr/local/bin). You should probably put this file somewhere safe in case you want to refer to it later.
    You may need to change the first row of the wpp script in order to match the correct path for your perl interpreter.

      Known bugs [ ^ ]

    Actually WPP cannot check for recursive template inclusion (while 1.34 do that) or macro call, this stuff will be fixed as soon as possible.

      Contacting the author [ ^ ]

    If you find a problem with this program or you would like to make a suggestion, or whatever, feel free to e-mail me at lm@geocities.com

      Thanks! [ ^ ]

    My thanks go to the following people for submitting feedback and/or code. Apologies to anyone I have forgotten (send me an e-mail!).

    • Luca Sironi (Luca_).
    • Fancesco Chemolli (Kinkie).
    • Matteo Sala (Ares).
    • Jean-Pierre Malisse, who sent me some suggestions that pushed me in writing the multi line macros feature of WPP ;)
    • Matteo Flora (Last Knight), he discovered that VIM (VI iMproved) + WPP can be better than MS FrontPad and that the trashcan may be the best place for the last one. ;P
    • Bastian Kleineidam, who discovered and fixed a missing tail inclusion bug. ;)
    • Colin Turnbull (CT), let me notice that removing empty lines is bad behaviour for <PRE> formatted stuff. He also asked for macro expansion into variables assigments and macro arguments ... done! ;)
    • Michelangelo Grigni for some interesting suggestions.
    • Matt Massie, another who catched the <PRE> bug of wpp 2.00 - 2.01.
    • Andreas Forsgren said: "WPP is *great* *great* *great*, I love it! Thank *you* for making it." ... then requested an enhancement for the @IF@ ;)
    • Stefano Strada (Harlock).
    • Roberto Flora, who used WPP for the web site Ordine Agronomi e Forestali di Bergamo.
    • Jiri Rubes, who reported and fixed a problem with wpp 2.09 running in some environments that don't set PWD.
    • Petr Prazak, who made some new features for wpp-2.11 (DATE_FORMAT, FILE_SIZE, FILE_DATE) and fixed some bugs.
    • Bastian Kleineidam, who made a patch for implementing the SYSTEM built-in macro for wpp-2.11.
    • Martin Fischer, who reported a couple of serious bugs in wpp 2.11.

       ^ Top    Next >   
    Marco (LM) Lamberto lm@geocities.com
    Revised: 2000/12/10 12:34:04
    http://www.geocities.com/Tokyo/1474/wpp/index.html
    Preprocessed by WPP Graphics by GIMP