Flask-Turbolinks
Turbolinks for Flask.
Turbolinks
Turbolinks makes following links in your web application faster. For more information, visit the original rails repo: turbolinks.js.
Installation
To install Flask-Turbolinks, simply:
$ pip install Flask-Turbolinks
Or alternatively if you don’t have pip:
$ easy_install Flask-Turbolinks
Usage
To enable turbolinks, you need to put turbolinks.js in the <head> of your html templates.
The backend flask app should be wrapped with turbolinks:
from flask import Flask from flask_turbolinks import turbolinks app = Flask(__name__) # you app should has a secret key for session app.secret_key = 'secret' turbolinks(app)
And everything works now, no more configuration.
Note
You can install the javascript code with component:
$ component install lepture/flask-turbolinks
You can also grab the code from turbolinks.js on GitHub. It is written in CoffeeScript, you can compile it with:
coffee -c turbolinks.js.coffee
Demo
There is a demo in the example directory, start a server and open the url with Chrome. View the requests with developer tools of Chrome.
Credits
Thanks for rails, thanks for the help of Rei.
Changelog
We keep the changelog on GitHub releases.
Metadata
Release files for Flask-Turbolinks 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-Turbolinks-0.2.0.tar.gz | 4.0 kB | Without provenance | Details for Flask-Turbolinks-0.2.0.tar.gz |
Release files / Flask-Turbolinks-0.2.0.tar.gz
| Download URL | Flask-Turbolinks-0.2.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9086fa5d425db3530efe7eb96d90067f0531158864f0e7130846e534069d6381
|
|
BLAKE2b-256 checksum How to use checksums |
4df3e7b4ff1fa5c121e81480bf54dcfb8ce61ccab1153cc6d3a00c36f1e7d2a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-Turbolinks 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.