$WBINC

Important: $WBINC function is processed before any other function, tag or section. Therefore it can not accept other WhizBase functions as arguments, nor it can be used as an argument for other WhizBase functions. For situations where it is required (e.g. to use Whizbase functions in a file name, or to use include file as a part of $WBIF or $WBCASE functions, etc.) use $WBRINC.

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

Syntax
$WBINC{includefilename}
$WBINC[includefilename]

Parameters
includefilename - full path and file name of the file that should be included.  Included file can 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>
$WBINC[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