A markup language similar to noweb tells Leo how to create scripts from (parts of) an outline. Headlines control and guide scripts.
Leo's outline or hierarchical structure is distinct from the web of interleaved program and documentation "chunks" associated with classic literate programming tools. The body text of any Leo node may contain a Leo script, a Python script executed in the context of a Leo outline.