I apologise for asking this since I know very little Javascript to work with Snowman, but I've done great advances porting my Harlowe game to Snowman.
I have these two passages:
You run ::render, it displays ::content, with a link that when clicked runs render again. It works perfectly.
Now change ::content like this:
And now, the story.render() function fails with an Unexpected token message.
Can you tell the reason for this? My final goal is building a loop that renders several passages like ::content next to each other.
Thanks!
I have these two passages:
::render <%= story.render("content") %> ::content <a style="color:red" id="hook">Link</a> <script> $('#hook').click(function () { story.show("render") }) </script>
You run ::render, it displays ::content, with a link that when clicked runs render again. It works perfectly.
Now change ::content like this:
::content <a style="color:red" id="hook">Link</a> <script> $('#hook').click(function () { story.show("render") }) </script> Some other text.
And now, the story.render() function fails with an Unexpected token message.
Can you tell the reason for this? My final goal is building a loop that renders several passages like ::content next to each other.
Thanks!