Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avelino/Flask-Quik
Provides support for Quik Templates in Flask
https://github.com/avelino/Flask-Quik
Last synced: 3 days ago
JSON representation
Provides support for Quik Templates in Flask
- Host: GitHub
- URL: https://github.com/avelino/Flask-Quik
- Owner: avelino
- License: mit
- Created: 2013-09-23T04:10:34.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-24T12:32:21.000Z (about 11 years ago)
- Last Synced: 2024-10-12T09:19:51.356Z (23 days ago)
- Language: Python
- Homepage: https://github.com/avelino/quik
- Size: 129 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
==========
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 CIProvides 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 FlaskQuikapp = 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')