skyl / Python-CoffeeScript

A bridge to the JS CoffeeScript compiler.

Home Page:http://d.hatena.ne.jp/doloopwhile/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python-CoffeeScript

Python-CoffeeScript is a bridge to the JS CoffeeScript compiler.

A short example

>>> import coffeescript
>>> print(coffeescript.compile('add = (a, b) -> a + b'))
(function() {
  var add;

  add = function(a, b) {
    return a + b;
  };

}).call(this);

Compile a directory

There is a commandline utility that is installed, pycs. You may invoke it like so to find and compile all .coffee files under the current dir:

$ pycs .

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) 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

Changes

1.0.8
Updated coffee-script.js to v1.6.3. Added download_link to setyp.py.
1.0.7
Updated coffee-script.js to v1.6.1.
1.0.6
Updated coffee-script.js to v1.5.0.
1.0.5
Made compile_file to accept plural files and Added some utility functions.
1.0.4
Updated coffee-script.js to v1.4.0.
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.

About

A bridge to the JS CoffeeScript compiler.

http://d.hatena.ne.jp/doloopwhile/

License:MIT License


Languages

Language:Python 94.5%Language:Shell 5.5%