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


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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page