Hi David,

I managed to get it working. Thanks for your help!

Tord

On Saturday, July 11, 2015 at 10:31:09 PM UTC+2, David Nolen wrote:
> Just write your JavaScript following Google Closure Library conventions. As 
> long as the namespace matches Java classpath conventions there's nothing more 
> to do. You can require your JavaScript like any other Google Closure Library 
> namespace.
> 
> 
> This is precisely how transit-cljs uses transit-js.
> 
> 
> 
> David
> 
> 
> On Sat, Jul 11, 2015 at 1:50 PM, Tord Romstad <[email protected]> wrote:
> Hi,
> 
> 
> 
> I'm working on a ClojureScript library where -- for performance reasons -- I 
> want to write some of the low-level parts in JavaScript. Of course I could 
> move the JavaScript code to a separate pure JavaScript library and load this 
> along with the compiled ClojureScript on any web page where I want to use my 
> library, but this seems awkward, especially since I don't expect to use any 
> of the JavaScript code except in my ClojureScript library.
> 
> 
> 
> Is there a way to embed JavaScript files in a ClojureScript library and 
> access the JavaScript variables and functions from the ClojureScript files? 
> In case it makes things easier, I don't need access to ClojureScript 
> definitions from the JavaScript side.
> 
> 
> 
> --
> 
> 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.

Reply via email to