Leo can generate scripts by traversing (a part of) an outline!

Directives specify properties of a node and its descendants. Directives may be inherited.

The @others directive tells where to place the expansion of unnamed child nodes in the generated script.

Section references of the form <<section name>> tell where to place named child nodes. All parts of Leo generate scripts automatically as required.