[contents]
Contents
Syntax
The syntax for poke calls is:
f++:
poke{option}(params)
n++:
@poke{option}(params)
Description
The poke function takes a non-zero number of string parameters that should be paths to create or just update the modification time for, you can poke files or directories.
Note: Nift will skip to the first non-whitespace (ie. to the first character that is not a space, tab or newline) after a poke call and inject it to the output file where the call started. If you want to prevent Nift from doing this put a '!' after the call, eg.:
Options
The following options are available for poke calls:
option |
description |
dirs |
create directories |
files |
create files (default) |
option |
description |
f++ example
Examples of poke being used with f++:
poke("example.txt")
poke{dirs}("dir/")
n++ example
Examples of poke being used with n++:
@poke("example.txt")
@poke{dirs}("dir/")