1
0
mirror of synced 2025-12-19 09:57:42 -05:00
Files
docs/data/variables/README.md
2021-05-07 12:06:04 +02:00

28 lines
549 B
Markdown

# 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`:
```yaml
# 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 %}
```