Skip to content

Commit f954580

Browse files
Alistair Turnbullrrthomas
authored andcommitted
README.nancy.md: Document $filename
1 parent 9ae532c commit f954580

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
@@ -147,6 +147,8 @@ Nancy recognises these commands:
147147
want, and makes `$include` behave better in various contexts.)
148148
+ *`$paste(FILE)`* Look up the given source file like `$include`, and
149149
return its contents.
150+
+ *`$filename(FILE)`* Look up the given source file like `$include`, and
151+
return its filename.
150152
+ *`$run(PROGRAM,ARGUMENT…){INPUT}`* Run the given program with the given
151153
arguments and return its result. If an input is given, it is expanded,
152154
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
@@ -130,6 +130,8 @@ Nancy recognises these commands:
130130
want, and makes `\$include` behave better in various contexts.)
131131
+ *`\$paste(FILE)`* Look up the given source file like `\$include`, and
132132
return its contents.
133+
+ *`\$filename(FILE)`* Look up the given source file like `\$include`, and
134+
return its filename.
133135
+ *`\$run(PROGRAM,ARGUMENT…){INPUT}`* Run the given program with the given
134136
arguments and return its result. If an input is given, it is expanded,
135137
then supplied to the program’s standard input. This can be useful in a

0 commit comments

Comments
 (0)