$WBRINC - include file

Availability
$WBRINC is available for use with all WBSP commands.

Syntax
$WBRINC{includefilename}
$WBRINC[includefilename]

Parameters
includefilename - full path and file name of the file that should be included.  Included file can NOT contain <!--WB_BeginDetail--> and <!--WB_EndDetail--> comments.

Returns
Source code of the file includefilename. If source code contains <body> and </body> tags, function will include only the source code between these tags.

Example

[FormFields]
wb_command=R
wb_showlogo=F
<!--WB_BeginTemplate-->
<html>
<body>
$WBRINC[menu.ic]
</body>
</html>

File menu.ic

<html>
<body>
<a href="JavaScript:void(0);">Link 1</a><br>
<a href="JavaScript:void(0);">Link 2</a><br>
</body>
</html>

After running this example, the resulting page in web browser may look like this:

Link 1
Link 2