On Tuesday, December 8, 2015 at 5:22:18 AM UTC-8, Zubair Quraishi wrote:
> I try something like:
>
> (cljs/eval (cljs/empty-state)
> (read-string s)
> {:eval cljs/js-eval
> :source-map true
> :context :expr
> :def-emits-var true
> :ns my.namespace
> }
> (fn [result] result)))
>
>
>
> but my.namespace seems to cause it to not work with no errors
Basically in-ns is a special form and therefore normal rules do not apply. In
the eval-str :ns key you pass the current namespace so the above cannot work.
I would suggest to have a look at replumb's implementation:
https://github.com/ScalaConsultants/replumb/blob/master/src/cljs/replumb/repl.cljs#L395
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.