1
0
mirror of synced 2025-12-25 02:17:36 -05:00
Files
docs/data/variables
Rachael Rose Renk adf1158e5c GitHub Enterprise Server 3.16 release candidate (#54227)
Co-authored-by: Pallavi <96553709+pallsama@users.noreply.github.com>
Co-authored-by: Andrey Bazhutkin <andrba@github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
Co-authored-by: Roniece Ricardo <33437850+RonRicardo@users.noreply.github.com>
Co-authored-by: docs-bot <77750099+docs-bot@users.noreply.github.com>
Co-authored-by: Vanessa <vgrl@github.com>
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com>
Co-authored-by: Courtney Claessens <courtneycl@github.com>
Co-authored-by: isaacmbrown <isaacmbrown@github.com>
2025-02-25 19:04:15 +00:00
..
2024-06-03 16:03:10 +00:00

Variables

Variables are short strings of reusable text.

The YAML files in this directory each contain multiple variables.

The path, filename, and keys within each YAML file determine what its path will be in the data object.

For example, given a file data/variables/foo/bar.yml:

# multiple short strings in one file
meaning_of_life: 42

# and they can be nested if needed
nested:
  values:
    too: Yes!

Its values would be accessible as:

{% data foo.bar.meaning_of_life %}

{% data foo.bar.nested.values.too %}