The page has not had the template added to it yet, and no macro processing has yet happened. By default, this filter calls html.addPageToGlossary to add the current page to the glossary for this site. This filter is called last, after the page has been entirely rendered. Writing a simple filter Open the finalFilter script. A simple filter will replace every occurence of the word foo with the word bar.
Filters always take the address of the page table as a parameter, and they always return true.
The local declaration sets the variable s to the contents of the rendered text, which are stored in the page table. The next line sets the rendered text equal to the contents of s. Since web pages are strings, the string verbs are very useful in filter scripts. Copyright 1992-2001 UserLand Software, Inc. .