A sample gist that can be loaded into the SCI Playground.
DON'T DELETE! - referred to by the playground.
A sample gist that can be loaded into the SCI Playground.
DON'T DELETE! - referred to by the playground.
(defn attach-msg [msg] | |
(.append (js/document.getElementById "app") | |
(doto (js/document.createElement "p") | |
(.append msg)))) | |
(attach-msg "Hello from a .clj file!") |
(attach-msg "Hi from a .cljs file!") |
(attach-msg | |
(str "Hola! Estas " | |
(or #?(:clj "Clojure" :cljs "ClojureScript") | |
"neither-clj-nor-cljs-according-to-sci"))) |