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

  General notes [ ^ ]

WPP now can handle directives, variables and macros without caring if they are together into a big line or separated.
Remember that a line ending with a single \ will be joined with the following. So if you want to split a long directive or a macro you could use the \ char at the end of every chunk except for the last.
However if you need the last \ for other reasons you could escape it by doubling the \ into \\ that will be replaced with the single \.
You could also add an extra space after the \, making it no more the last character of the line.

Source file
   ...
@A_VAR=I've made this on @DATE@@
@A_MACRO("text", "text @A_VAR@!", "@B_MACRO(\"arg1\", \
   \"arg2\")@ text")@
@INCLUDE @EXTRA_INCL_DIR@/test@
   ...

Macros can be called within other macros (pay attention to recursive calls!), variables assignments or macro aguments.

Variables are expanded almost everywhere, even into variables assignments or into the arguments of a called macro.

Paths are relative to the template or the output directories. You can't use absolute paths.


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