Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ For example, this YAML file, `{% raw %}data/variables/foo/bar.yml{% endraw %}`,

```yaml
# the YAML file can contain multiple short strings in one file
meaning_of_life: 42
meaning_of_life: '42'

# the strings can also be nested if needed
nested:
values:
too: Yes!
affirmative: Yes!
```

The values would be accessible as `{% raw %}{% data foo.bar.meaning_of_life %}{% endraw %}` and `{% raw %}{% data foo.bar.nested.values.too %}{% endraw %}`.
The values would be accessible as `{% raw %}{% data variables.foo.bar.meaning_of_life %}{% endraw %}` and `{% raw %}{% data variables.foo.bar.affirmative %}{% endraw %}`.
11 changes: 4 additions & 7 deletions data/variables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ For example, given a file `data/variables/foo/bar.yml`:

```yaml
# multiple short strings in one file
meaning_of_life: 42
meaning_of_life: '42'

# and they can be nested if needed
nested:
values:
too: Yes!
affirmative: Yes!
```

Its values would be accessible as:

```
{% data foo.bar.meaning_of_life %}
{% data variables.foo.bar.meaning_of_life %}

{% data foo.bar.nested.values.too %}
{% data variables.foo.bar.affirmative %}
```
Loading