satyr / coco

Unfancy CoffeeScript
http://satyr.github.com/coco/
MIT License
498 stars 48 forks source link

Include source #243

Closed jasonl99 closed 9 years ago

jasonl99 commented 9 years ago

I think it would be useful to include the source of each method (minus the documentation that has already been extracted) in an initially-collapsed element. I've tried to look at the code and figure out how to do this, but it's way over my head :).

vendethiel commented 9 years ago

What do you call an "initially-collapsed element"? You mean to compile

x = -> 5 + it

to

var x;
x = function (it) {
  /*
 5 + it
 */
  return 5 + it;
}
jasonl99 commented 9 years ago

Oh, snap. I put this in the wrong repository. Sorry!