You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fully expand $include’d files before filtering through program
This is what the user is likely to expect, and means for example that a
converter (say, from Markdown to HTML) is run after its input is expanded.
The output is still expanded too, in case the program has put any commands
in its output.
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,9 @@ $paste(date,+%Y-%m-%d)
194
194
See the [date example](Cookbook.md#date-example) in the Cookbook for more
195
195
detail.
196
196
197
+
When `$include` runs a program, any input is fully expanded before being
198
+
passed to the program.
199
+
197
200
When commands that run programs are nested inside each other, the order in
198
201
which they are run may matter. Nancy only guarantees that if one command is
199
202
nested inside another, the inner command will be processed first. This means that if, for example, `$realpath` is passed as an argument to a program, the program will be given the actual path, rather than the string `$realpath`.
Copy file name to clipboardExpand all lines: README.nancy.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,9 @@ For example, to insert the current date:
179
179
See the [date example](Cookbook.md#date-example) in the Cookbook for more
180
180
detail.
181
181
182
+
When `\$include` runs a program, any input is fully expanded before being
183
+
passed to the program. The program’s output is again expanded, in case it has inserted any commands in its output.
184
+
182
185
When commands that run programs are nested inside each other, the order in
183
186
which they are run may matter. Nancy only guarantees that if one command is
184
187
nested inside another, the inner command will be processed first. This means that if, for example, `\$realpath` is passed as an argument to a program, the program will be given the actual path, rather than the string `\$realpath`.
0 commit comments