get_env

Signature
get_env(name=)

An environment variable ("" when unset): one the project’s .env file defines (the process environment wins), or one security.funcs.getenv allows; any other name is an error.

Arguments#

ArgumentTypeRequired
namestringyes

Details#

  • Kind: Function, implemented by fugo.
  • Available in: every kind of template: layouts, partials, shortcodes and render hooks.
  • Output: escaped like any value, unless marked safe.

    Type to search titles, headings and text.