Fork me on GitHub

@viebel I’d like to use klipse to implement an in app DSL, suggestions?

Yehonathan Sharvit19:08:08

What do you want to achieve exactly @flyboarder?


@viebel ideally i’d like to use klipse + sandbox -> then upload file


I figured I would check for the files when the app loads the main page and then load them

Yehonathan Sharvit19:08:13

@flyboarder what do u mean by sandbox and what files do u have in mind?


clojurescript files, I’d like to limit execution to a small collection of namespaces (custom DSL) and upload the resulting code to a filestore to be loaded by my application at runtime, i thought I could use klipse as a starting point


I would probably store and load the files over websocket


ah ok so klipse is just returning things as strings

Yehonathan Sharvit20:08:32

it converts the clojure object into string


is it using a browser repl in the background at all?


or just the object conversion you linked?

Yehonathan Sharvit20:08:00

no. it only uses cljs.js/eval-str


i see ok, that clears things up!

Yehonathan Sharvit20:08:39

you could use cljs.js/eval-str by yourself also

Yehonathan Sharvit20:08:01

until you need to add namespaces

Yehonathan Sharvit20:08:11

then you have to add a bit of code

Yehonathan Sharvit20:08:23

you could see how Klipse does it


ill poke around the klipse code some more , thanks!

Yehonathan Sharvit20:08:29

let me know if you need further guidance


cheers! :thumbsup: