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

  Variables assignment [ ^ ]

@NAME=val@
Valid names can contain uppercase letters, numbers and the '_' underscore char.
The value can contain other variables and macro calls delimitated by the @ char.
Source file
<!-- assigns to FOO_0 the value Title -->
   @FOO_0=Title@

<!-- deletes FOO_1 if defined -->
   @FOO_1=@

<!-- sets FOO_0 to FOO_1 -->
   @FOO_0=@FOO_1@@

  Variables substitution [ ^ ]

@NAME@
Simply put the variable name between two '@'.
Source file
@FOO1=A@
@FOO2=B@
Choose @FOO1@ or @FOO2@ ?
=
Output file
Choose A or B ?

  Read-only variables [ ^ ]

@WPP_VERSION@
The program version.
@INCLUDE@
Contains the name of the last included template.
@FILENAME@
The bare name without extensions (.raw or .html) and path.
@TEMPLATE@
If evaluated into a template is the template name, otherwise is an empty string.
@DATE@
RCS $Date$ tag value (if you use RCS, otherwise is the last modify time or, if the source is STDIN, the current date).
@AT@
The '@' char.
@EXTENSION@
Contains the extension of the output file (default is 'html'). It can be changed into a config file through the @DEFAULT_EXTENSION@ variable.
@RAW_EXTENSION@
Contains the extension of the input file (default is 'raw'). It can be changed into a config file through the @DEFAULT_RAW_EXTENSION@ variable.
@TMPL_EXTENSION@
Contains the extension of the template files (default is 'tmpl'). It can be changed into a config file through the @DEFAULT_TMPL_EXTENSION@ variable.
@OUTPUTDIR@
Contains the output directory. It can be changed into a config file through the @DEFAULT_OUTPUTDIR@ variable.
@OUTPUTSUBDIR@
Contains the output subdirectory path.
By running wpp on @OUTPUTSUBDIR@/ex.raw the output file will be placed into @OUTPUTDIR@/@OUTPUTSUBDIR@/ex.html.
@RAWDIR@
Contains the directory of the raw sources.
@TMPLDIR@
Contains the templates director It can be changed into a config file through the @DEFAULT_TMPLDIR@ variable.

   ^ Top < Previous    Next >   
Marco (LM) Lamberto lm@geocities.com
Revised: 1998/09/23 11:26:51
http://www.geocities.com/Tokyo/1474/wpp/manual_4.html
Preprocessed by WPP Graphics by GIMP