lib_src section

lib_src:
  !extern [file] | !inline [source]

This optional section specifies where Custom Javascript should be loaded from.

The value is enumerated over two possible variants:

  • !extern: contains a file path to load js from
  • !inline: contains the js source directly, written in the config file

Examples:

lib_src: !inline |
  function double_input(x) {
    return x + x;
  }
vars:
  doubled_key: '${x:double_input(${e:KEY})}'