Source

flask-utils /

Filename Size Date modified Message
flask_utils
303 B
1.1 KB
35 B
997 B
1012 B

Flask-utils

Various Flask utilities. It's a work in progress lib where I dump stuff occasionally. Feel free to contribute yours and send me pull requests.

Latest PyPI version Number of PyPI downloads

Install

pip install flask-utils

Contents

decorators.py

from flask_utils.decorators import render

@render('index.html')
def homepage():
    return {'var1': 1, 'var2': 2}

jinja2htmlcompress.py

https://github.com/mitsuhiko/jinja2-htmlcompress/