Skip to content

Commit 77157df

Browse files
author
Alistair Turnbull
committed
Correct $realpath to $outputpath
1 parent cc2a160 commit 77157df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cookbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Look at the [source](Cookbook.nancy.md) for the Cookbook for more examples of th
214214

215215
## Creating binary files in the output
216216

217-
Nancy is mostly intended for templating text files. Sometimes, we would like to create binary files, for example an image containing context-dependent text. In theory, one could use `$paste` to do this, but since any trailing newline is stripped from the output, this is not a good technique in general. Also, it may be desirable to create binary files based on other outputs. This can be achieved by using the `$realpath` command to construct a filename in the output directory, and a `.in.nancy` file to run commands without creating a file in the output directory.
217+
Nancy is mostly intended for templating text files. Sometimes, we would like to create binary files, for example an image containing context-dependent text. In theory, one could use `$paste` to do this, but since any trailing newline is stripped from the output, this is not a good technique in general. Also, it may be desirable to create binary files based on other outputs. This can be achieved by using the `$outputpath` command to construct a filename in the output directory, and a `.in.nancy` file to run commands without creating a file in the output directory.
218218

219219
The following script, given a directory on the command line, creates a Zip file of a directory in that directory:
220220

Cookbook.nancy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Look at the [source](Cookbook.nancy.md) for the Cookbook for more examples of th
111111

112112
## Creating binary files in the output
113113

114-
Nancy is mostly intended for templating text files. Sometimes, we would like to create binary files, for example an image containing context-dependent text. In theory, one could use `\$paste` to do this, but since any trailing newline is stripped from the output, this is not a good technique in general. Also, it may be desirable to create binary files based on other outputs. This can be achieved by using the `\$realpath` command to construct a filename in the output directory, and a `.in.nancy` file to run commands without creating a file in the output directory.
114+
Nancy is mostly intended for templating text files. Sometimes, we would like to create binary files, for example an image containing context-dependent text. In theory, one could use `\$paste` to do this, but since any trailing newline is stripped from the output, this is not a good technique in general. Also, it may be desirable to create binary files based on other outputs. This can be achieved by using the `\$outputpath` command to construct a filename in the output directory, and a `.in.nancy` file to run commands without creating a file in the output directory.
115115

116116
The following script, given a directory on the command line, creates a Zip file of a directory in that directory:
117117

0 commit comments

Comments
 (0)