Flask-Inliner将CSS <style>块转换为内联样式属性
项目描述
Flask-Inliner将CSS <style>块转换为内联样式属性
安装
使用pip
pip install flask-inliner
手动安装
从https://github.com/Code-ReaQtor/flask-inliner/releases下载
python setup.py install
示例
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()
项目详情
关闭
flask-inliner-1.0.0.zip的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | 98194cab318af0bb476abc1843eb77bcd1b3859a6e4ad96833b738f40dfd169c |
|
MD5 | 305227c5e7b45c63c786b2f0ceed109e |
|
BLAKE2b-256 | a1be897b4e421845ba0c8338ccbd6d349245ec2539400ccbcd031f8a37dc5cc5 |