HTT Documentation

htt.env

  • Fnapi_version() → integer, integer

    Return major- and minor version of the HTT API

    The scheme is thus: The major version is incremented when *existing* APIs change The minor version is incremented when new APIs are added

    Returns
    • major: integer
      • the API major version
    • minor: integer
      • the API minor version
  • Fnhtt_path() → string

    Return path to the HTT binary running the script.

    This can be useful if you want to call HTT on another script to parse in an isolated process

    Returns
    • htt_bin_path: string
      • absolute path to the HTT binary
  • Fnout_path() → string

    Return path to the base output directory.

    HTT determines a base output path which is the base path from which all relative output paths from calls to `render` will place their files.

    By default, this path is the same directory as the script being run, but command-line flags can override this.

    Returns
    • out_path: string
      • absolute path to the output directory