1
0
mirror of synced 2025-12-25 11:03:37 -05:00
Files
docs/data/variables
Sarah Edwards f5f7e03d60 [9 AM PST June 23, 2021] Issues vNext mega branch (#19969)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Lauren Brose <labrose@github.com>
Co-authored-by: Martin Lopes <martin389@github.com>
Co-authored-by: Steve Guntrip <12534592+stevecat@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Matt Butler <7584089+azenMatt@users.noreply.github.com>
2021-06-23 08:59:57 -07:00
..
2021-04-06 09:11:34 +01: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

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