Relative Content

Tag Archive for yaml

In YAML, what does the period at the start of a line mean?

I’m working on a YAML config file for ESPHome and need to use some anchors to avoid a lot of repetition. I’ve been having a really tough time finding information on YAML anchors and examples of more than just the simplest uses. In this case, I have, with someone’s suggestion:

In YAML, what does the period at the start of a line mean?

I’m working on a YAML config file for ESPHome and need to use some anchors to avoid a lot of repetition. I’ve been having a really tough time finding information on YAML anchors and examples of more than just the simplest uses. In this case, I have, with someone’s suggestion:

In YAML, what does the period at the start of a line mean?

I’m working on a YAML config file for ESPHome and need to use some anchors to avoid a lot of repetition. I’ve been having a really tough time finding information on YAML anchors and examples of more than just the simplest uses. In this case, I have, with someone’s suggestion:

YAML: translating free-flowing text from XML

I’m studying YAML as a replacement for XML, but I’m experiencing difficulties when dealing with elements containing free-flowing text with embedded elements. For instance, the following XML document:

Large YAML document represented as file hierarchy

A program of mine has a large configuration file in YAML syntax. I am thinking about splitting the large file into multiple files to make them easier to edit (ideally files will be small, fitting one page). The loader procedure will traverse the file hierarchy, use file names as YAML associative array keys, and insert file contents as the corresponding values. Only associative arrays at the top of YAML hierarchy will be split this way, any other syntax will have to be contained within leaf files.