4
votes

I'm interested in embedding a clojurescript REPL in a webpage. How could I write a clojurescript evaluator in clojurescript, so that I can compile that to javascript and embed the javascript in the webpage? I can't go down the route of compiling the clojurescript to javascript in the cloud.

3

3 Answers

2
votes

There's no way to do this as ClojureScript does not bootstrap itself. Currently a non-goal for the project, though I'm sure somebody could pursue the idea in a fork.

1
votes

There is clojurescript.net, and the source is available here.

Or clojurescript.io, which uses re-plumb.