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
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.
>
>
> 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
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
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
> 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