Template context when creating notes¶
The following variables are available in the templates used when creating new notes – both for the filename and the note content.
Variable |
Type |
Description |
---|---|---|
|
string |
Random ID generated for this note |
|
string |
Note title given to |
|
string |
Any text piped through the standard input |
|
string |
Parent directory in the notebook |
|
string |
Additional variables provided through the config file or |
|
date |
Current date and time, useful when paired with |
|
map |
Dictionary of case-sensitive environment variables, e.g. |
These additional variables are available only to the note content template, once the filename is generated.
Variable |
Type |
Description |
---|---|---|
|
string |
Filename generated for this note, including the file extension |
|
string |
Filename without the file extension |