Skip to main content

django_compressor filter to compile coffee-script

Project description

Coffee Compressor Compiler

[![Build Status](](


This tool is meant to be used as an extension to [django-compressor](

It precompiles [coffee-script](


- platform independent
- no need to install node.js packages
- 100% test coverage
- [PEP 8]( compliance
- [semver]( compliance


Install with pip/easy_install from the pypi

`pip install coffee-compressor-compiler`

or clone the latest source

git clone
cd coffee-compressor-compiler
python install

You must also install [node.js]( or [PyV8](

The latest versions of node.js can be found [here](


Using this tool is as simple as installing it and adding it to the `COMPRESS_PRECOMPILERS` django setting

('text/coffeescript', 'coffeecompressorcompiler.filter.CoffeeScriptCompiler'),

Then, in your django templates you can embed coffee-script templates like so
{% load staticfiles %}
{% load compress %}

{% compress js %}
<script type="text/coffeescript" src="{% static 'app/' %}" ></script>
<script type="text/coffeescript">
console.log 'Hello!'
alert 'Hello!'
{% endcompress %}

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coffee-compressor-compiler-0.2.0.tar.gz (51.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page