1
0
mirror of synced 2026-01-07 09:01:31 -05:00
Files
docs/data/variables/README.md
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00

28 lines
547 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`:
```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 accesible as:
```
{% data foo.bar.meaning_of_life %}
{% data foo.bar.nested.values.too %}
```