News for hackers. Stuff that matters.
Re:Why are we templating YAML? by Rapzid on Thursday February 07, 2019 @05:08PM (#19109084)
You can indent it though, but the hyphen already means a list item.

That is a preferred syntax for many that are used to YAML though.

Re:Why are we templating YAML? by XorNot on Thursday February 07, 2019 @08:51PM (#19110676)
The hyphen is associated with the a though. In what's posted, a is a list, not a map - the type of the parent is being declared by that hyphen.
Re:Why are we templating YAML? by kccqzy on Thursday February 07, 2019 @05:14PM (#19109137)
That's kind of my point. Indentation is optional, so many don't indent, making the resulting document harder to understand.
Re:Why are we templating YAML? by emmelaich on Thursday February 07, 2019 @08:23PM (#19110496)
FWIW, I think yaml / ansible linters and style checkers typically require indentation.