v0.3.0 (alpha)
Changelog v0.2.1 -> v0.3.0
- Restructuring of the output HTML. Before:
<body>-><div id="iff-snippet">. Now:<body>-><div id="iff-story">-><div id="iff-snippet">. So, a "wrapper" around#iff-snippetis introduced, to facilitate author customization (#iff-snippetcontents are discarded every time the snippet changes) and for future use by the engine. - All fields in the configuration file that are intended for file names are now of type
string | string[]. - Multiple story/global/tag-specific/snippet-specific scripts run inside the same EJS scope. Say you have a snippet
<snippet name="A Snippet" scripts="script1.js script2.js">. That now translates to:
<%
... contents of script1.js ...
... contents of script2.js ...
%>
while before it was translated to:
<% ... contents of script1.js ... %>
<% ... contents of script2.js ... %>
That aims to further facilitate the author to break their logic into as many files as they like, and not be forced to use the story's state s variable to communicate inside the same snippet.
- Several bug fixes (mainly now all user scripts are properly HTML-escaped).
Many thanks to @kadw108 for their feedback and suggestions for this release!