Module tpnote_lib::settings

source ·
Expand description

Configuration data that origins from environment variables. Unlike the configuration data in LIB_CFG which is source only once at the of Tp-Note, the SETTINGS object may be sourced more often to follow changes in the related environment variables.

Constants

  • Name of the environment variable, that can be optionally used to overwrite the user’s default language setting, which is accessible as {{ lang }} template variable and used in various templates.
  • Name of the environment variable, that can be optionally used to overwrite the user’s filter_get_lang and filter_map_lang configuration file setting.
  • Name of the environment variable, that can be optionally used to overwrite the user’s login name. The result is accessible as {{ username }} template variable and used in various templates.

Functions

  • (Re)read environment variables and store them in the global SETTINGS object. Some data originates from LIB_CFG.