Skip to main content

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()

Download files

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

Source Distribution

flask-inliner-1.0.0.zip (2.5 kB view details)

Uploaded Source

File details

Details for the file flask-inliner-1.0.0.zip.

File metadata

  • Download URL: flask-inliner-1.0.0.zip
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for flask-inliner-1.0.0.zip
Algorithm Hash digest
SHA256 98194cab318af0bb476abc1843eb77bcd1b3859a6e4ad96833b738f40dfd169c
MD5 305227c5e7b45c63c786b2f0ceed109e
BLAKE2b-256 a1be897b4e421845ba0c8338ccbd6d349245ec2539400ccbcd031f8a37dc5cc5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page