docs/data/variables
Isaac Brown c3f5734495
[2022-12-07]: Improvements to NuGet registry (#32240)
Co-authored-by: Vanessa <vgrl@github.com>
2022-12-07 22:13:48 +00:00
..
README.md
actions.yml
code-scanning.yml Improve comments for code security variables (#32445) 2022-11-11 09:31:37 +00:00
codespaces.yml Move "web-based editor" string out of product.yml (#32443) 2022-11-18 12:43:36 +00:00
command_line.yml Update styling for placeholder text 2022-11-18 16:02:31 -05:00
contact.yml
desktop.yml
enterprise.yml GitHub Enterprise Server 3.7 release candidate (#31313) 2022-10-25 18:35:59 +02:00
explore.yml
gists.yml
large_files.yml
location.yml Updating error message for OpenAPI Descriptions check (#31720) 2022-10-17 19:35:34 +00:00
migrations.yml
notifications.yml
product.yml Copilot for Business (#32667) 2022-12-07 17:16:11 +00:00
projects.yml GitHub Enterprise Server 3.7 release candidate (#31313) 2022-10-25 18:35:59 +02:00
release_candidate.yml GitHub Enterprise Server 3.7 general availability (#32343) 2022-11-08 18:11:12 +01:00
search.yml
visual_studio.yml [2022-10-31] Visual Studio — remove anything that isn't a product name (#32119) 2022-10-31 10:45:43 +00:00

README.md

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 %}