@@ -149,15 +149,15 @@ Entries added to the `expressionLib` attribute are parsed with the JavaScript en
149
149
of the CWL Runner. This can be used to include external files or to create JavaScript
150
150
functions that can be called in other parts of the CWL document.
151
151
152
- For example, we can write a JavaScript function to an external file ` functions.js ` :
152
+ For example, we can write a JavaScript function to an external file ` custom- functions.js` :
153
153
154
- ``` {literalinclude} /_includes/cwl/functions.js
154
+ ``` {literalinclude} /_includes/cwl/custom- functions.js
155
155
: language: javascript
156
- : caption: " `functions.js`"
157
- : name: " `functions.js`"
156
+ : caption: " `custom- functions.js`"
157
+ : name: " `custom- functions.js`"
158
158
```
159
159
160
- The following CWL document includes the ` functions.js ` file, and uses the function
160
+ The following CWL document includes the ` custom- functions.js` file, and uses the function
161
161
` capitalizeWords ` :
162
162
163
163
``` {literalinclude} /_includes/cwl/hello-world-expressionlib.cwl
@@ -170,12 +170,12 @@ The following CWL document includes the `functions.js` file, and uses the functi
170
170
In `expressionLib`, `$include` supports both relative and absolute paths.
171
171
```
172
172
173
- The ` functions.js ` file is included in the CWL document with the ` $include: functions.js `
173
+ The ` custom- functions.js` file is included in the CWL document with the ` $include: custom- functions.js `
174
174
statement. That makes the functions and variables available to be used in other parts of
175
175
the CWL document.
176
176
177
177
In another entry to the ` expressionLib ` attribute we then create another function,
178
- ` createHelloWorldMessage ` , that calls the ` capitalizeWords ` from ` functions.js ` . This
178
+ ` createHelloWorldMessage ` , that calls the ` capitalizeWords ` from ` custom- functions.js` . This
179
179
is just to show that you can either include external JavaScript files, or define
180
180
inline functions in your CWL document.
181
181
0 commit comments