SCI script tag

What is this

This project exposes the Small Clojure Interpreter in the browser in such a way that you can use it with the script tag.

Project status

This project is currently experimental and breaking changes are bound to happen. Feedback is welcome on Github.

You can get a copy of sci_script_tag.js here. If you want a pinned version of sci_script_tag.js, your best bet is to download your own copy and host it yourself.

Example usage

      <head>
        <script src="https://borkdude.github.io/sci-script-tag/js/sci_script_tag.js" type="application/javascript"></script>
        <script type="application/x-sci">
          (defn my-alert []
           (js/alert "alert!"))
        </script>
      </head>

      <body>
        <button onclick="user.myAlert()">
          Click me
        </button>
      </body>