Fork me on GitHub
#klipse
<
2017-08-12
>
flyboarder18:08:53

@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?

flyboarder19:08:17

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

flyboarder19:08:12

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?

flyboarder19:08:28

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

flyboarder20:08:00

I would probably store and load the files over websocket

flyboarder20:08:42

ah ok so klipse is just returning things as strings

Yehonathan Sharvit20:08:32

it converts the clojure object into string

flyboarder20:08:24

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

flyboarder20:08:50

or just the object conversion you linked?

Yehonathan Sharvit20:08:00

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

flyboarder20:08:20

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

flyboarder20:08:07

ill poke around the klipse code some more , thanks!

Yehonathan Sharvit20:08:29

let me know if you need further guidance

flyboarder20:08:43

cheers! :thumbsup: