Expand description
§{:data; … :}
Set local data from json file.
{:data; local-data.json :}
The scope of the data is the file where it is loaded and its children.
To access the variables, the prefix “local::” must be used:
{:;local::varname:}
§Modifiers
{:!data; ... :}
{:^data; ... :}
The “not” modifier prevents the file from being reload if it has already been parsed.
{:!data; file.json :}
§Flags
{:data; {:flg; inline :} >> ... :}
§Flag: inline
{:data; {:flg; inline :} >>
{
"data": {
"varname": "value"
}
}
:}
§Examples
Assumes local-data.json:
{
"data": {
"hello": "Hello!"
}
}
Then:
{:data; local-data.json :}
{:;local::hello:}
Output:
Hello!