1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/data/variables
Martin Lopes 4f06ccf0a3 GitHub Actions Importer - [Public Beta] (#31630)
Co-authored-by: Ethan Dennis <ethanis@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Jennifer Kerns <47341891+JenniferKerns@users.noreply.github.com>
2022-11-03 14:55:29 +10: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-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 %}