(Highly experimental) ClojureScript core functionalities based on cljs-bootstrap. No JVM is required.
In your project folder
meteor add settinghead:cljs-core
Create a file with extension .cljs
, e.g.
(enable-console-print!)
(defn say-hello []
(println "hello!"))
(defn inc-all [nums]
(map inc nums))
(.startup js/Meteor say-hello)
(.startup js/Meteor #(println (inc-all [1 3 5 9])))
I only managed to get cljs.core
working and haven't tested the ClojureScript integration extensively or in production mode. Pull requests on improvement are welcome.