api:include

Version 25.3.9411


api:include


Use the api:include keyword to include APIScript from other files. Like traditional includes in other programming languages, api:include is replaced by the contents of the file specified in the file parameter.

Parameters

  • file | document: The name of the file to include.
  • language: The language the file was written in.

Control Attributes

None

Example

Import certain attributes (companyname and copyright) in each script without duplication:

<api:include file="globals.rsb"/> 
[companyname] 
[copyright] 
<api:call ...>