By writing documents directly in a programming language you have excellent possibilities to fight complexity at any location in the document, and at any time in the development process
Complexity fighting means
Introduction of functional abstractions
Avoiding (repetitive) manual work by programmed solutions
Can documents in natural languages really be written in a programming language?
Textual contributions in quoted strings
Implicit concatenation, implicit list flattening, adequate white space handling