
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
.. image:: https://travis-ci.org/lepture/flask-turbolinks.png?branch=master :target: https://travis-ci.org/lepture/flask-turbolinks .. image:: https://coveralls.io/repos/lepture/flask-turbolinks/badge.png?branch=master :target: https://coveralls.io/r/lepture/flask-turbolinks
Turbolinks for Flask.
Turbolinks makes following links in your web application faster. For more
information, visit the original rails repo: turbolinks.js
_.
To install Flask-Turbolinks, simply::
$ pip install Flask-Turbolinks
Or alternatively if you don't have pip::
$ easy_install Flask-Turbolinks
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.
.. _turbolinks.js
: https://github.com/rails/turbolinks
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
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.
Thanks for rails, thanks for the help of Rei_.
.. _Rei: https://github.com/chloerei
We keep the changelog on GitHub releases
_.
.. _GitHub releases
: https://github.com/lepture/flask-turbolinks/releases
FAQs
Turbolinks for Flask.
We found that Flask-Turbolinks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.