==============
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 ``script.coffee`` in its template directory.
from flask import Flask
from flask.ext.espresso import Espresso, espresso
app = Flask(__name__)
esp = Espresso(app)
@app.route("/")
def hello():
return espresso('script.coffee')
if __name__ == "__main__":
app.run(debug=True)
Links
-----
[0] http://www.coffeescript.org
[1] http://flask.pocoo.org/
Metadata
Release files for Flask-Espresso 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-Espresso-0.2.0.tar.gz | 54.8 kB | Without provenance | Details for Flask-Espresso-0.2.0.tar.gz |
Release files / Flask-Espresso-0.2.0.tar.gz
| Download URL | Flask-Espresso-0.2.0.tar.gz |
|---|---|
| Size | 54.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb6ff95ae9a6115cb0992b1113ef66e364fbb1a2b3de289e3d09cefa69b76ae8
|
|
BLAKE2b-256 checksum How to use checksums |
ca360f530d219d8ca9e2a05a86e6db3f7bc618f6142c1c72a1b7e764c2ff0843
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-Espresso 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.