Django cafe is a way to integrate Coffeescript within your Django application.
{% load coffee %}
<script src="https://github.com/bohde/django-cafe/raw/master/{% coffee spam.coffee %}"/>
<script src="https://github.com/bohde/django-cafe/raw/master/{% coffee foo.coffee bar.coffee %}"/>
`pip install https://github.com/joshbohde/django-cafe/tarball/master`
Make sure cafe is in your installed app, like so. You'll also need to have a working installation of Coffeescript.
INSTALLED_APPS = (
...
"cafe",
...
)
Default: MEDIA_ROOT
The location of the .coffee files.
Default: compiled
The location within the CAFE_ROOT
to store the compiled .js files.
Default: "coffee"
The Coffeescript executable.
Default: "-cj"
The parameters sent to the Coffeescript compiler.