File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,22 @@ $ cat output.txt
82
82
~~~
83
83
{: .output}
84
84
85
- Note that requirements must be provided as an array, with each entry (in this
86
- case, only ` class: InlineJavascriptRequirement ` ) marked by a ` - ` . The same
87
- syntax is used to describe the additional command line arguments.
85
+ Note that requirements can be provided with the map syntax, as in the example above:
86
+
87
+ ~~~
88
+ requirements:
89
+ InlineJavascriptRequirement: {}
90
+ ~~~
91
+ {: .source}
92
+
93
+ Or as an array, with each entry (in this case, only ` class: InlineJavascriptRequirement ` ) marked by a ` - ` .
94
+ The same syntax is used to describe the additional command line arguments.
95
+
96
+ ~~~
97
+ requirements:
98
+ - class: InlineJavascriptRequirement
99
+ ~~~
100
+ {: .source}
88
101
89
102
> ## Where are JavaScript expressions allowed?
90
103
> Just like [ parameter references] ({{ page.root }}{% link _ episodes/06-params.md %}), you can use JavaScript Expressions
You can’t perform that action at this time.
0 commit comments