Skip to content

Snocrystal v4.2

Latest
Compare
Choose a tag to compare
@ClassicMC-Studios ClassicMC-Studios released this 05 Jan 23:28
· 3 commits to main since this release
de171e3

Building the web your way.

This update syncs with older versions.*

v4.2 introduces a new way of script tag variable manipulation, however the original method continues to function.

<div data="{count:0}">
  <!-- Show count variable and call ad function onclick -->
  <p react>{{count}}</p>
  <button onclick="add()">+</button>
  <script>
    // Sno now automatically re-renders the reactive variables when they are modified with data.varName
    function add(){
      data.count++;
    }
  </script>
</div>