This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-06
Channels
- # announcements (3)
- # architecture (16)
- # beginners (5)
- # cherry (1)
- # cider (3)
- # cljsrn (2)
- # clojure (54)
- # clojure-dev (11)
- # clojure-europe (14)
- # datalevin (26)
- # emacs (8)
- # helix (5)
- # honeysql (5)
- # hyperfiddle (40)
- # lsp (12)
- # malli (23)
- # missionary (7)
- # nrepl (2)
- # off-topic (18)
- # releases (2)
- # yamlscript (1)
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 10