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


Using pip

pip install flask-inliner

Manual installation

Download from

python install


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

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

if __name__ == '__main__':

Project details

Download files

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

Files for flask-inliner, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page