1
0
mirror of synced 2026-01-08 12:01:53 -05:00
Files
docs/data/variables
Amy Burns ae96cd2cc5 Adding more information on how to use github.dev (#21576)
* making some minor improvements based on feedback

* added new product name and some improvements

* updating location and feedback

* updating doc based on PM feedback

* Apply suggestions from code review

Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>

* adding some updates based on feedback

* renaming file to match new SEO friendly title

* updating based on feedback

* updating based on feedback

Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2021-09-29 21:53:27 -04:00
..
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02: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 %}