Skip to content

"Story and Passage API": Snowman (v1.4)#


Often, it can be useful to access information about the story or other passages while it is running. The window.story.passage() function and property in Snowman allow for getting this type of information.



Twee Code#

:: StoryTitle
Story and Passage API in Snowman

:: Start
The title of this story is "<%= %>."

  window.setup = {};
  window.setup.passage = window.story.passage("Storage");

The name of the passage is "<%= %>."

The source of the passage is "<%= setup.passage.source %>"

:: Storage
This is content in the storage passage!

Twee Download