Fork me on GitHub
#cherry
<
2023-08-06
>
borkdude10:08:10

Embed cherry in a live playground on your website:

<div id="container"></div>

<script type="module">
  import { createPlayground } from "";

  const options = {
    params: {
      cljs: '(ns demo\n  ;; you can use npm modules\n  (:require ["canvas-confetti$default" :as confetti]))\n\n(let [el (js/document.getElementById "test")]\n  (.addEventListener el "click"\n    (fn []\n      (confetti)\n      (println "test"))))\n',
      html: '<button id="test">test</button>',
      console: "open",
    },
  };
  createPlayground("#container", options);
</script>
https://github.com/squint-cljs/cherry/issues/101#issuecomment-1666809920

metal 10