Closed ngn closed 10 years ago
Weird, "it works for me"!
test.coffee:
console.log 1 + macro -> macro.valToNode 3+4
in the console:
bin/coffee test.coffee
output:
8
Is this not working for you?
It fails when I do this from another directory:
npm install git+https://github.com/paiq/blackcoffee
node_modules/.bin/coffee test.coffee
Thanks, fixed!
When the original coffee is given a file argument, the file gets executed. When BlackCoffee's "coffee" command is given a file argument, the compiled source is printed to stdout, as if
-c -p
options are passed.