Using http://coffeescript.org/extras/coffee-script.js directly, what are the parameters accepted by the function compile() ?
So far, I can see two parameters:
- The CoffeeString to compile into JavaScript
- An object used as options for the compiler
Is there other parameters?
What are the supported options for the second parameter? So far, I only managed to make bare: on/off work. Is there something else?
Why not read the literate source and not the minified one? I can see:
header: do we surround it with"// Generated by CoffeeScript blah blah"?filename: for reporting error messagessandbox: a context to execute code in forevalmodulename: the name for the created module when evallingThe same options are then used with the name
oinnodes.coffee, and some state is passed around in it from there on.