Python-CoffeeScript is a bridge to the JS CoffeeScript compiler.
>>> import coffeescript >>> coffeescript.compile('add = (a, b) -> a + b') '(function() {\n var add;\n\n add = function(a, b) {\n return a + b;\n };\ n\n}).call(this);\n' >>> print(coffeescript.compile('add = (a, b) -> a + b')) (function() { var add; add = function(a, b) { return a + b; }; }).call(this);
$ pip install CoffeeScript
or
$ easy_install CoffeeScript
The latest version of coffee-script.js (the script for browser <script type="text/coffeescript"> tags) can be download from http://jashkenas.github.com/coffee-script/
Copyright (c) 2012 OMOTO Kenji. Released under the MIT license. See LICENSE for details.
You can download current version of coffee-script.js from http://jashkenas.github.com/coffee-script/extras/coffee-script.js
- 1.0.3
- Updated coffee-script.js to v1.3.3.
- 1.0.2
- Updated coffee-script.js to v1.3.1.
- 1.0.1
- Fixed some small problem in setup.py.
- 1.0.0
- First release.