Skip to main content

Cake for Flask.

Project description

Flask-Cake runs CoffeeScript Cake files automatically on filesystem changes. This is useful, for example, when you want to perform tasks like compile all CoffeeScript files in to JavaScript files.

Quickstart

from flask import Flask
from flask_cake import Cake

app = Flask(__name__)
cake = Cake(app)

The default configuration watches for changes in the static/coffee directory, and will run cake build.

You can also customize the directory where the Cakefile is, and also the commands that are run:

cake = Cake(app, cakeparent="example/coffee", tasks=["build", "minify"])

The cakeparent directory is relative to app.root_path.

More Info

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

Flask-Cake-0.2.1.tar.gz (2.4 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