A function to turn clojure maps is shown here: https://gist.github.com/1098417
to go the reverse way, use (js->clj), there are examples here:
https://github.com/clojure/clojurescript/blob/master/samples/twitterbuzz/src/twitterbuzz/core.cljs

  mg

On Fri, Jul 22, 2011 at 8:50 PM, Robert Luo <l...@basecity.com> wrote:
> To interact with various javascript libraries, they often requires you
> provide data in javascript object, while in clojurescript we normally
> use a map. How can we transform a map to javascript object and vice
> versa?
>
> BTW, now I use (js* "{width: 400, height: 300}") to do it.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to