Skip to main content

Adds Coffescript support to Flask applications

Project description


Adds Coffeescript [0] support to Flask [1] applications.

Flask-Espresso will compile on the fly your coffee-scripts in the template
directory of your application. To avoid performance issues, a cache mechanism
retrieves the scripts already compiled.

Install it

$ pip install Flask-Espresso

Note : Flask-Espresso requires you to have a javascript runtime installed on
your system.

How-to use it

A simple example to show you how to use it. Create a new Flask application and
put a coffeescript file ```` in its template directory.

from flask import Flask
from flask.ext.espresso import Espresso, espresso

app = Flask(__name__)
esp = Espresso(app)

def hello():
return espresso('')

if __name__ == "__main__":



Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask-Espresso-0.2.0.tar.gz (54.8 kB) Copy SHA256 hash SHA256 Source None Mar 14, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page