Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CoffeeScript compiler for Gears

branch: develop

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 gears_coffeescript
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.rst
Octocat-spinner-32 requirements.txt
Octocat-spinner-32 setup.py
README.rst

gears-coffeescript

CoffeeScript compiler for Gears. This package already includes the CoffeeScript source code for you, so you don't need to worry about installing it yourself.

Bundled CoffeeScript version: 1.7.1

Installation

Install gears-coffeescript with pip:

$ pip install gears-coffeescript

Requirements

gears-coffeescript requires node.js to be installed in your system.

Usage

Add gears_coffeescript.CoffeeScriptCompiler to environment's compilers registry:

from gears_coffeescript import CoffeeScriptCompiler
environment.compilers.register('.coffee', CoffeeScriptCompiler.as_handler())

If you use Gears in your Django project, add this code to its settings:

GEARS_COMPILERS = {
    '.coffee': 'gears_coffeescript.CoffeeScriptCompiler',
}
Something went wrong with that request. Please try again.