"Modularity": SugarCube (v2.18)
In programming terminology, modularity refers to dividing software into different sections related to their purpose or to better organize the whole. In SugarCube, this technique can be used through the <<include>> macro to print the contents of one passage in another. Parts of a story can often be re-used in this way.
:: StoryTitle Modularity in SugarCube :: Start <<set $lineOne to "Give us a verse">> <<set $lineTwo to "Drop some knowledge">> <<include "showLineOne">> <<include "showLineTwo">> :: showLineOne $lineOne :: showLineTwo $lineTwo
Download: Twee Code