On Wed, May 20, 2015 at 9:56 AM, Khalid Jebbari <[email protected]> wrote:
> > Something lacking with CLJX/CLJC AFAIK is that you can't target *both* > Node.js and the browser from the same Clojure code base. Not entirely true. The the cljs.core/*target* dynamic var will be bound to the string of the target, currently "default" and "nodejs" are the only possible values. You can write ifs/switches on the value of this dynamic var. cljs.core/*target* is actually a Google Closure Compiler define so in advanced mode any code in a target block that doesn't match will get eliminated. David -- 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.
