Expose a javascript api with coffeescript?

Yep that's correct. Alternatively you can use define myApi = { foo: -> } because this is window in the root context of the file.

Yep that's correct. Alternatively you can use define @myApi = { foo: -> } because this is window in the root context of the file.

Window. Foo also has the advantage of making it very explicit that your injecting it into global scope. – Raynos May 13 at 17:29 I'm guessing using the @ symbol is better because then it's portable for your node.

Js scripts as well, correct? – brent May 13 at 17:30 1 Quite right. Either window or this will work fine; stylistically, I think window.Is preferred.

You'll thank yourself if you find yourself grepping for global exports... (Edit to respond to simul-post with brent: Yes, this will automatically resolve to exports in Node. Note that I like to define something like root = exports? This to allay any possible confusion.

) – Trevor Burnham May 13 at 17:32.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions