Dynamic documents — YAML
Wednesday, 19 August 2026
YAML is a human-readable data serialization language
Indentation matters — use spaces and 2 or 4 of them
Data are typically written as simple key: value pairs
More complex structures are allowed, but you won’t encounter them typically with Quarto
Strings don’t need to be quoted…
But, if the string contains any special characters, they must be quoted
You can use ' or " quotes, latter most useful
To nest elements hierarchically we use indendation
2 or 4 spaces are used, not a tab!
format is the top level
html, pdf, and docx are second-level elements, etc