1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/data/variables
Amy Burns 6f3b71b06e [April 19th] Remove Visual Studio 2019 Codespaces content (#18727)
* removing vs2019 guide and references to VS Codespaces

* Removing from index
2021-04-19 14:41:09 -04: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
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 %}