PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: GetQuotedText()[Next]: IncludePath()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> HtmlGeneratorTags()


This is an inbuilt function function provided by PPWIZARD.

This can be used as an alternative to the /HtmlGenerator switch (see its doco for more details). The routine must be called before a "head" tag is encountered.

The previous value is returned by this call, if you just wish to query the value (no change) then you could of course call this routine twice (as demonstrated in an example below).

The function takes one or two parameters:

  1. The new tags (or "" to disable).

  2. You can change the "local" value (current build only) or the "global" value which affects all future builds (but not this one). To specify that a global change is required pass "Y".

Example #1 - Change current + Future HTML Files

#DefineRexx ''
    ;--- Change for current build ("Head" tage must not yet have been generated) ---
    call HtmlGeneratorTags '<meta name="generator" content="PPWIZARD is great mate!" />', 'N';

    ;--- Change also for future HTML (#output command etc) ------------------
    call HtmlGeneratorTags '<meta name="generator" content="PPWIZARD is great mate!" />', 'Y';

Example #2 - Just Query Current Value

#DefineRexx ''
    ;--- Get the current value (note unwanted side effect) ------------------
    @@CurrentTags = HtmlGeneratorTags('', 'N')

    ;--- Restore the original value -----------------------------------------
    call HtmlGeneratorTags @@CurrentTags, 'N';

email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: GetQuotedText()[Next]: IncludePath()

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm