Closed lunelson closed 11 years ago
That's strange. Can you post the exact steps to reproduce. I'll happily fix.
I guess I've misunderstood it. Vanilla coffee-script recognizes cson but doesn't seem to parse it out to json the way your code does. I'm looking in vain so far, for a way to write and compile cson inside sublime text.
Correct, CoffeeScript outputs code. CSON outputs data.
If sublime text can execute command line code, you can install cson globall npm install -g cson
then pipe the data to json2cson
to compile it.
The CSON example on the front page, with every coffee-script I can find parses to this:
and not to this, which is the starting JSON that is shown:
Am I missing something? I'd love to be able to get the latter result as it annoys me to keep typing quotation marks.