clojurescript and external libs

2011-07-24 Thread Jack Moffitt
I'm exploring clojurescript and wondering how to use an external library? In my particular case, I was trying to use Soy from Closure Templates. I realize that arbitrary third party libraries will need to fit into the Closure Compiler ways, and part of my exploration is trying to port some of my o

Re: clojurescript and external libs

2011-07-24 Thread Wilson MacGyver
You use js* like here https://gist.github.com/1098417 See how jquery is being pulled in On Jul 24, 2011, at 12:35 PM, Jack Moffitt wrote: > I'm exploring clojurescript and wondering how to use an external > library? In my particular case, I was trying to use Soy from Closure > Templates. > >

Re: clojurescript and external libs

2011-07-24 Thread Jack Moffitt
> You use js* like here > > https://gist.github.com/1098417 > > See how jquery is being pulled in Unfortunately this means that my external JS lib won't get any benefits from the closure compiler. Is there some way to tell the compiler where more external libs are and then use them via :require ju

Re: clojurescript and external libs

2011-07-24 Thread Sean Corfield
On Sun, Jul 24, 2011 at 12:31 PM, Jack Moffitt wrote: > Unfortunately this means that my external JS lib won't get any > benefits from the closure compiler. Is there some way to tell the > compiler where more external libs are and then use them via :require > just like closure library (let's assum

Re: clojurescript and external libs

2011-07-24 Thread Brenton
Jack, You can use the :libs key in the options which are passed to build. For example, there is a directory of third party libraries in "closure/ library/third_party/closure" which may be pulled in like this: cljsc src {:libs ["closure/library/third_party/closure"] ...other options...} > ouptput

Re: clojurescript and external libs

2011-07-24 Thread Jack Moffitt
> You can use the :libs key in the options which are passed to build. Thanks very much for this pointer. That worked like a charm. jack. -- 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 No