I'm just now wrapping my head around Spine, Hem, CoffeeScript, etc. in an effort to build a browser-based application. I'm wanting to use a JavaScript graphing library in the application that I'm pretty sure isn't written in CoffeeScript (does that matter?), so I'm wondering how I'd go about mixing both CoffeeScript and JavaScript in my application... is it as simple as just mixing the two and letting Hem (which is what actually triggers the CoffeeScript to get compiled to JavaScript, right?) figure things out during compilation from CoffeeScript to JavaScript? Or is it something where I need to use special tags in my CoffeeScript when mixing in JavaScript?
I've Googled around for some examples of such a thing but to no avail... please advise.
There should not be a problem. Coffeescript compiles down to JavaScript (and in a much more straight-forward way then, say, GWT). What the browser will see is just JavaScript.
You can just call Javascript from Coffeescript and vice-versa.
Do not mix the same in one file (have some .coffee and some .js files).
Make sure you understand how Coffeescript compiles (by default) into modules wrapped into their own scopes, and how to export symbols from them if needed.
Nope, does not matter at all. You can call that library from CoffeeScript just as easily as you can from other JavaScript.
When you compile CoffeeScript, it does not check if functions that it calls exist or not (that happens at run-time). So the compiler only looks at the .coffee files, and does not need to care about the other files in your project.