User Tools

Site Tools


render() is a function of the window.story global JavaScript variable created by Snowman.

Name: render()

Parameters: {String or Number} ID or name of the passage

Return Type: {String} HTML source code

Description: Returns the HTML source for a passage. This is most often used when embedding one passage inside another. In this instance, make sure to use <%= %> instead of <%- %> to avoid incorrectly encoding HTML entities.

snowman/window-story/render.txt · Last modified: 2017/10/10 00:39 (external edit)