Skip to main content

Flask-Inliner converts CSS <style> blocks to inline style attributes

Project description

Flask-Inliner converts CSS <style> blocks to inline style attributes

Installation

Using pip

pip install flask-inliner

Manual installation

Download from https://github.com/Code-ReaQtor/flask-inliner/releases

python setup.py install

Example

from flask import Flask
from flask_inliner import Inliner
app = Flask(__name__)
Inliner(app)


@app.route('/')
def hello_world():
    return '<html><head><style>h1 { color:#ffcc00; }</style></head><body><h1>Hello World!</h1></body></html>'

if __name__ == '__main__':
    app.run()

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
flask-inliner-1.0.0.zip (2.5 kB) Copy SHA256 hash SHA256 Source None

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