"Modularity": Harlowe (v2.0)


In programming terminology, modularity refers to dividing software into different sections related to their purpose or to better organize the whole. In Harlowe, this technique can be used through the (display:) macro to print the contents of one passage in another. Parts of a story can often be re-used in this way.

Live Example

Download: Live Example

Twee Code

:: StoryTitle
Modularity in Harlowe

:: Start
(set: $lineOne to "Give us a verse")
(set: $lineTwo to "Drop some knowledge")

(display: "showLineOne")
(display: "showLineTwo")

:: showLineOne

:: showLineTwo

Download: Twee Code

results matching ""

    No results matching ""