"Story and Passage API": Snowman (v1.3)

Summary

Often, it can be useful to access information about the story or other passages while it is running. The Story and Passage APIs in Snowman allow for getting this type of information.

Live Example

Download: Live Example

Twee Code

:: StoryTitle
Story and Passage API in Snowman

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

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

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

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

:: Storage
This is content in the storage passage!

Download: Twee Code

results matching ""

    No results matching ""