Skip to content

v0.3.0 (alpha)

Compare
Choose a tag to compare
@zehanort zehanort released this 17 Oct 20:11
· 42 commits to main since this release

Changelog v0.2.1 -> v0.3.0

  1. 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-snippet is introduced, to facilitate author customization (#iff-snippet contents are discarded every time the snippet changes) and for future use by the engine.
  2. All fields in the configuration file that are intended for file names are now of type string | string[].
  3. 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.

  1. Several bug fixes (mainly now all user scripts are properly HTML-escaped).

Many thanks to @kadw108 for their feedback and suggestions for this release!