Categories

This is an example YAML variable. Variables need to be the first thing in the line. If it shows up in the result, it worked!

This would output the variable as literal text.

three: But this doesn't work. *DOOWB

And this would throw an error:

three: *DOOWB But this doesn't work.

YAML supports variables, or repeated nodes. The simplest explanation is that you define something as a variable by preceding it with "&NAME value" and you can refer to it with "*NAME" e.g.:

# YAML
some_thing: &NAME foobar
other_thing: *NAME

Parses to:

{"other_thing": "foobar", "some_thing": "foobar"}