A bridge to the JS CoffeeScript compiler
Project description
CoffeeScript
============
Python CoffeeScript is a bridge to the JS CoffeeScript compiler.
A short example:
>>> 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);
# Installation
$ pip install CoffeeScript
or
$ easy_install CoffeeScript
#coffee-script.js
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/
#License
Copyright (c) 2011 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
#Changes
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.
============
Python CoffeeScript is a bridge to the JS CoffeeScript compiler.
A short example:
>>> 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);
# Installation
$ pip install CoffeeScript
or
$ easy_install CoffeeScript
#coffee-script.js
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/
#License
Copyright (c) 2011 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
#Changes
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
CoffeeScript-1.0.2.zip
(48.0 kB
view hashes)
CoffeeScript-1.0.2.tar.gz
(44.8 kB
view hashes)
Built Distributions
CoffeeScript-1.0.2-py3.2.egg
(45.5 kB
view hashes)
CoffeeScript-1.0.2-py2.7.egg
(46.1 kB
view hashes)