@viebel I’d like to use klipse to implement an in app DSL, suggestions?
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
@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
The best for you would be to take a look at https://github.com/viebel/klipse/blob/master/src/klipse/lang/clojure.cljs#L178-L181
ah ok so klipse is just returning things as strings
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?
no. it only uses cljs.js/eval-str
i see ok, that clears things up!
you could use cljs.js/eval-str
by yourself also
until you need to add namespaces
then you have to add a bit of code
you could see how Klipse does it
ill poke around the klipse code some more , thanks!
no problem
let me know if you need further guidance
cheers! :thumbsup: