跳转到主要内容

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 (2.5 kB 查看散列)

上传时间:

支持者:

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面