LANG, FILE, FUNC, and SCRIPT keys

For Script UPoC, items with keys LANG, FILE, FUNC, or SCRIPT specify scripting language, function, or script (code fragment).

This table lists these key descriptions:

Key Description
LANG Case-insensitive scripting language name:
  • "javascript” for JavaScript UPoC.
  • “python” for Python UPoC.
FILE

The file is searched for in the scripts subdirectories in these locations:

  • Current site
  • Master site
  • Root directories

For JavaScript, the file names use extension .js and for Python .py. If not, then the extension is appended to the file name.

FUNC Function name.
SCRIPT Code snippet, which is specified directly as an argument.