1
0
mirror of synced 2026-01-02 21:04:32 -05:00
Files
docs/data/variables
Meg Bird f0223b5a8b [GHES 3.0] GA release (#17818)
* updates for GA

* fix linter

* update with date

* update date again

* change banner

* apply feedback

* update with a little more feedback

* fix lint checker
2021-02-16 13:12:22 -07:00
..
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02:00
2020-11-04 14:38:40 -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 %}