rclement / flask-pretty

Flask extension to output prettified HTML pages

Home Page:http://flask-pretty.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask-Pretty

PyPI Version PyPI License PyPI Versions Build Status Coverage Status Documentation Status

Flask-Pretty is a Flask extension to output prettified HTML pages to ease the development process of HTML templates. However, HTML prettifying should only be used for development purposes only. For production purposes, HTML minifying should be used instead (for instance by using Flask-HTMLmin).

The underlying HTML prettifying process is provided by BeautifulSoup.

Installation

Install the extension with with pipenv (recommended):

$ pipenv install flask-pretty

Or with pip:

$ pip install flask-pretty

Usage

Using Flask-Pretty is really simple:

    import Flask
    from flask_pretty import Prettify

    app = Flask(__name__)
    prettify = Prettify(app)

Documentation

The Sphinx-compiled documentation is available on ReadTheDocs.

License

The MIT License (MIT)

Copyright (c) 2018 Romain Clement

About

Flask extension to output prettified HTML pages

http://flask-pretty.readthedocs.io

License:MIT License


Languages

Language:Python 65.4%Language:Makefile 25.7%Language:HTML 8.9%