1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/data/variables
Sarah Edwards dac4144086 PAT v2 beta (#31013)
Co-authored-by: Hirsch Singhal <1666363+hpsin@users.noreply.github.com>
Co-authored-by: Jovel Crisostomo <jovel@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Vanessa <vgrl@github.com>
2022-10-18 15:11:04 +00: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
2022-10-18 15:11:04 +00: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 %}