Flask-Inliner
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()
Metadata
Release files for flask-inliner 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask-inliner-1.0.0.zip | 2.5 kB | Details |
Release files / flask-inliner-1.0.0.zip
| Download URL | flask-inliner-1.0.0.zip |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98194cab318af0bb476abc1843eb77bcd1b3859a6e4ad96833b738f40dfd169c
|
|
BLAKE2b-256 checksum How to use checksums |
a1be897b4e421845ba0c8338ccbd6d349245ec2539400ccbcd031f8a37dc5cc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |