User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

snowman:window-story:render [2017/10/09 20:39] (current)
Line 1: Line 1:
 +//​render()//​ is a function of the [[snowman:​window-story|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/09 20:39 (external edit)