Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Quik for Flask

Project description

==========
Flask-Quik
==========

.. image:: https://travis-ci.org/avelino/Flask-Quik.png?branch=master
:target: https://travis-ci.org/avelino/Flask-Quik
:alt: Build Status - Travis CI

Provides support for Quik Templates in Flask - https://github.com/avelino/quik



Registration
============

Applications can be registered directly in the extension constructor::

from flask import Flask
from flask.ext.quik import FlaskQuik

app = Flask(__name__)
quik = FlaskQuik(app)



Rendering
=========

Rendering Quik templates sends the same :data:`~flask.template_rendered` signal
as Jinja2 templates. Additionally, Quik templates receive the same context as
Jinja2 templates. This allows you to use the same variables as you normally
would (``g``, ``session``, ``url_for``, etc)::

from flask.ext.quik import render_template

@app.route('/')
def hello_quik():
return render_template('hello.html', name='quik')

Project details


Release history Release notifications

Download files

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

Files for Flask-Quik, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size Flask-Quik-0.1.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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