1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/data/variables
Gabriela Tolosa Ramirez 0dcaa0d18e updating "Viewing your starred gists" (#50433)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Mark Roghelia <mark@roboshark.com>
Co-authored-by: Anne-Marie <102995847+am-stead@users.noreply.github.com>
2024-05-08 10:49:27 +00: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 %}