"Headers and Footers": Snowman (v1.3)#
"Headers and Footers" demonstrates the use of the window.story.render() function to return the HTML contents of another passage. Combined with Underscore template functionality, the content of passages can be "displayed" in others. Because Snowman does not have pre-defined 'header' or 'footer' functionality, using these two different methods together can create the same result. However, the code would need to be included on any additional passages to continue the effect.
:: StoryTitle Snowman: Headers and Footers :: Start <%= window.story.render("Header") %> This content is between the header and the footer. <%= window.story.render("Footer") %> :: Header This is the header! :: Footer This is the footer!