Regarding the when-node macro, this is to support my testing under chrome, where node-webkit code would fail (a simple system-tray in this example), I wouldn't say my app template is production quality at this point, so YMMV :-).
On Tue, Dec 31, 2013 at 6:53 PM, Gary Trakhman <[email protected]>wrote: > I'm not sure what exactly are the affects of ':target :nodejs'. > > > On Tue, Dec 31, 2013 at 6:23 PM, Eduardo Lávaque > <[email protected]>wrote: > >> > The node-require thing uses js-interop, notice it's wrapped in a custom >> 'when-node' macro. >> >> > This is due to a big difference between cljs and clojure, you can't >> dynamically load namespaces, a la (require ..). Since loading the cljs >> node namespace will fail on non-node runtimes, I use js interop directly. >> >> So basically any Node.js code would have to be inside the `when-node` >> macro? And inside that macro I can use the `node-require`? >> >> What do you know about `:target :nodejs` in the project.clj file? I've >> seen that in all tutorials for CLJS + Node... >> >> -- >> 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. >> > > -- 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.
