Big Changes From The Norm
Snowman uses Markdown formatting in its passage syntax. Instead of invoking
<<double angle brackets>>, it uses ERB-style
<% %> delimiters.
Anything inside a
when a passage is displayed. See
passage.write() for how code can dynamically
set passage contents.
As a shortcut, you can write
<%= expression %> to have a particular expression
interpolated into the passage, e.g.
The answer to the question is <%= 2 + 2 %>.
n.b. Although this syntax looks like Underscore templating, it is not.
By default, clicking a passage link does not add an entry to the reader's
browser history. See
story.checkpoint() for how to do this.
To Install This
Grab the latest Snowman.zip from the Downloads tab of this repository, then extract it into the "targets" folder of your Twine install. After restarting Twine, it should show up in the list of story formats under the Story menu.
API docs (e.g. how to extend the built-in functionality) are also available under the Downloads tab.
Building From Source
npm install to install dependencies.
grunt will create a testing
version of the format as index.html,
grunt doc will build API documentation
under doc/, and
grunt release will build a release version ready to be used
in Twine under dist/.