I usually never care about bringing external libs into the closure system. Instead, I would do this:
HTML: <script src="three.js"></script> Clojurescript: (def THREE js/THREE) Of course, this places it outside closure, and wont be compiled with the closure compiler. I don't think this matters much (in most cases anyway). Because clojurescript is pretty heavyweight as is. Also, 3d-applications are typically one-page, so page size is not as important. Jonathan On Tue, Dec 4, 2012 at 9:20 AM, Graham MacDonald <grahamamacdon...@gmail.com > wrote: > Hi > > I'm trying to create a cljs project which uses Three.js. I found a > snippet of code here <https://gist.github.com/1157978> (though I have no > idea if it works or not...) I understand I need to reference three.js as > an extern or a foreign lib, but I've been unable to get it working > successfully. The closest I got was to reference three.js, but I then got > a build error about not being able to init three.js (I forget the exact > error - I'm at work). > > So, does anyone have, or know of, any small example of including this > project and using it from ClojureScript? Or any tips to help me down the > road? > > Thanks, > Graham > > -- > 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