html.processMacros
| Syntax |
html.processMacros (s, plainProcessing, adrPageTable)
|
| Params |
s is a string, the text to be run through the macro processor. plainProcessing (optional) is a boolean. Default is false. If true, autoParagraphs, activeUrls, and clayCompatibility are turned off. adrPageTable is the address of the current page table.
|
| Action |
Processes macros and expands glossary references in the source text.
|
| Returns |
A string of HTML text.
|
| Examples |
html.processMacros ("{clock.now ()}", false, @websites.["#data"]) "12/10/98; 3:57:05 PM"
|
| Notes |
This verb requires that page table be already set up. If you call it from your own scripts, be sure to pass the address of an existing table. You can call this script from within your macros. This verb is called by html.buildObject during the rendering process to build the page. A common error is to forget to make sure the first parameter is a string. If, for example, you want to process macros in a wp-text object at adr, you'd call html.processMacros like this: html.processMacros (string (adr^)).
|
| See also |
Calling html.processMacros outside the Website Framework.
|