This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-12
Channels
- # beginners (2)
- # boot (1)
- # cider (3)
- # cljsrn (28)
- # clojure (70)
- # clojure-russia (1)
- # clojure-spec (21)
- # clojure-uk (2)
- # clojurescript (16)
- # component (10)
- # data-science (5)
- # datomic (9)
- # emacs (5)
- # fulcro (2)
- # jobs (1)
- # juxt (1)
- # klipse (23)
- # lumo (1)
- # mount (12)
- # off-topic (4)
- # parinfer (1)
- # re-frame (20)
- # ring-swagger (2)
- # spacemacs (4)
@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: