Skip to content

Commit d3f9649

Browse files
author
Alistair Turnbull
committed
README.nancy.md: Document $filename
1 parent 8c18caa commit d3f9649

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ Nancy recognises these commands:
141141
want, and makes `$include` behave better in various contexts.)
142142
+ *`$paste(FILE)`* Look up the given source file like `$include`, and
143143
return its contents.
144+
+ *`$filename(FILE)`* Look up the given source file like `$include`, and
145+
return its filename.
144146
+ *`$run(PROGRAM,ARGUMENT…){INPUT}`* Run the given program with the given
145147
arguments and return its result. If an input is given, it is expanded,
146148
then supplied to the program’s standard input. This can be useful in a

README.nancy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ Nancy recognises these commands:
126126
want, and makes `\$include` behave better in various contexts.)
127127
+ *`\$paste(FILE)`* Look up the given source file like `\$include`, and
128128
return its contents.
129+
+ *`\$filename(FILE)`* Look up the given source file like `\$include`, and
130+
return its filename.
129131
+ *`\$run(PROGRAM,ARGUMENT…){INPUT}`* Run the given program with the given
130132
arguments and return its result. If an input is given, it is expanded,
131133
then supplied to the program’s standard input. This can be useful in a

0 commit comments

Comments
 (0)