Skip to content

Commit fb08608

Browse files
twigleingridmr-c
authored andcommitted
Fixes #177
An example for both the map and the array syntax for the `InlineJavascriptRequirement`.
1 parent 1d1d2e7 commit fb08608

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

_episodes/13-expressions.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,22 @@ $ cat output.txt
8282
~~~
8383
{: .output}
8484

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}
88101

89102
> ## Where are JavaScript expressions allowed?
90103
> Just like [parameter references]({{ page.root }}{% link _episodes/06-params.md %}), you can use JavaScript Expressions

0 commit comments

Comments
 (0)