News for hackers. Stuff that matters.
Re:CoffeeScript -- You Are Totally Gonna Hate It by jashkenas on Sunday July 18, 2010 @07:46AM (#1525608)
I'm sorry -- if you'd like to use the compiler directly, here's an example:

    fs: require 'fs'

    fs.readFile source, (err, code) ->
      try
        js: CoffeeScript.compile(code.toString(), {source})
        fs.writeFile 'out.js', js
      catch err
        console.log err
Here's the source of the "CoffeeScript.compile" method:

http://jashkenas.github.com/coffee-script/documentation/docs...

Re:CoffeeScript -- You Are Totally Gonna Hate It by endtime on Monday July 19, 2010 @02:20AM (#1527784)
Oh, cool, thanks. I also just learned that {source} is short for {source: source}. That's something else missing from the docs, I believe.