Programming Reference Manual
 
Syntax
 
HtmParseFile htmpage$, replaces$
 
Description
The statement loads a completely defined .HTM page into memory and optionally replaces strings in the page before submitting the content to the client.
 
NOTE: This statement supports long (32-bit) filenames.
 
This command is useful for serving webpages, not stored in the logical paths. By deploying .HTM files through CCL procedures, you can manage full control on the surfing capabilities in you website.
 
To maintain the manageability of standard webpages and yet be able to modify content of the page per request, the replaces$ parameter can be optionally used to perform replacements of standard texts by user-defined messages. For example: if you want to display a form with a delivery address, you create a make-up of the page with the displayed address, specified as “#Address#”. Then, you replace this string with the read address.
 
replaces$ can contain multiple replacement strings. Each replacement instruction is devided into an old string and a new string by the vertical bar sign (|). Multiple instructions are devided by a CR/LF string. The proper format is: {oldstring1}|{newstring2}[crlf{oldstring2}|{newstring2}...
 
Parameter
Description
htmpage$
The filename of  the local html document that needs to be sent to the user.
replaces$
A special formatted string that contains one ore more replacement instructions.
See Also
Example
 
Sub Main
    Dim Repl$
    TrmSetInterface “HTML”
     TrmPrint “Content-type: text/html”
    TrmPrint “”
    Repl$ = “#ADDRESS#|My Address” & vbCrLf & _
             “#CITY#|My Old Town”
    HtmParseFile “C:\htdocs\addresses.htm”, Repl$
End Sub