Skip to main content
Version: 6.0.0

Include

Use for including a share script into the current script. The included script is pre-rendered and combined into the current script.

"use strict";
bridge.include(“path/to/scriptname.ccjs”); // put the bridge.include()call as the first line in your script.
...
caution

Make sure to put the bridge.include()call as the first line in your script. This is a necessary requirement, as any other lines preceding the bridge.include()call must be blank lines, //comments, or the ”use strict” declaration.

tip

The path of the included script is a relative path, ff without specifying the script path in include operation, the system will only search the scripts in the same folder as the current script located in.

Method Parameters​

ParameterDescription
scriptNameThe name of the script with its path (the relative path to the included script file).

Usage​

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab