as.cr/pt

as (ascript) is a front-end library with a so-called v-dom system, but it never requires you to "build", install "npm ~" or do any other complicated preparation to run. just import.

Usage

<script src="//as.cr" ></script>
<script>
  a.define('iguana', {
      child: [{
          id: 'trunk',
          content: [{  
              id: 'bodycolor'
          }]
      }],
      states: {
          stop: {trunk: {bodycolor: {background: 'black'}}},
          bite: {trunk: {bodycolor: {background: 'orange'}}},
          chew: {trunk: {bodycolor: {background: 'pink'}}},
          walk: {trunk: {bodycolor: {background: 'silver'}}},
      }
  });
  a.iguana().appendTo(document.body);
</script>

Reference

Guide

License

MIT