From c1d082ef804d9726c89e3b5043dce95dd08a0e54 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 17 Jun 2020 19:53:23 -0600 Subject: [PATCH] Add environment example --- docs/configuration/config-files.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/configuration/config-files.md b/docs/configuration/config-files.md index 61f032aa..67806fd7 100644 --- a/docs/configuration/config-files.md +++ b/docs/configuration/config-files.md @@ -93,6 +93,24 @@ Below is a table of the various forms: :information_source: An unresolved or invalid @environment will be left intact. +Consider the following fragment: +```hjson +{ + foo: { + bar: @environment:BAR_VAR:number + } +} +``` + +If the environment has `BAR_VAR=1337`, this would produce: +```hjson +{ + foo: { + bar: 1337 + } +} +``` + ## See Also * [System Configuration](config-hjson.md) * [Menu Configuration](menu-hjson.md)