WPP is a small perl5 script that allows preprocessing of HTML files. It allows you to define "variables", which are brief abbreviations for longer constructs, and include common HTML fragments. It's useful for giving a uniform layout to different HTML pages. It can be used in cgi-bin programs for automatic generation of pages. With less HTML code inside you can make more flexible cgi-scripts.
| Tags | Internet Web Dynamic Content CGI Tools/Libraries Site Management Text Processing Markup HTML/XHTML |
|---|---|
| Licenses | GPL |
| Operating Systems | OS Independent POSIX Linux |
| Implementation | Perl |
Recent releases


Changes: Safe eval code has been removed. INLINE error now prints eval code with line numbers. You can safely use print inside Eval code instead of returning output.


Changes: RURL was removed from wpplib, and is now a built-in macro instead. Built-in macros use internally relativized paths through RURL. CERN2HTML and NCSA2HTML relativize URLs in map tags. Debian packaging files were added. A bug in WPP::call which occurred when calling built-in macros was fixed. The arguments to WPP::get, WPP::set, WPP::eval, and WPP::canonpath are now checked. WPP::set now checks the variable name. Minor internal code cleanups were made.


Changes: This version fixes a directory bug when creating with "./ {file}.raw", and some code cleanups.


Changes: Deps generation cleanups were done. 'use strict' is enabled by default. All the warnings and errors now print the file and line. Some path generation code and other misc. code was also cleaned up.


Changes: This release adds a SYSTEM_PP macro alias, and fixes some warning messages with Safe module shipped with Perl 5.6.1. The client/server side map related macros now have support for map id. This version uses Term::ANSIColor for outputting bold messages when required. There is a new switch "-u", "--unsafe-eval" for disabling Safe module and using the standard "eval" function. The FILE_SIZE now can output values in bytes, KB, MB, etc. An EVAL error will result in a full dump of the inlined code with the error message.
- All comments
Recent commentsRe: Isn't this...
not really, but since I'm using it for my own works I've released it some years ago.
Isn't this...
... yet another template engine?