1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/data/variables
Vanessa 8bd8c10f9a GitHub Enterprise Server 3.3 release candidate (#22286)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Kelly Arwine <kellyarwine@github.com>
Co-authored-by: vgrl <vgrl@github.com>
Co-authored-by: Elijah Buck <buckelij@github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Kelly Arwine <kellyarwine@github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Jules Parker <19994093+jules-p@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2021-11-09 12:12:00 -05:00
..
2021-10-15 15:41:33 -05:00
2020-09-27 14:10:11 +02:00
2021-10-15 15:41:33 -05:00
2021-10-15 15:41:33 -05:00
2020-09-27 14:10:11 +02:00
2021-10-15 15:41:33 -05:00
2021-10-15 15:41:33 -05:00
2021-10-27 07:47:17 -07:00
2021-10-15 15:41:33 -05: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 %}