Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

This version
History Node

1.0.0

Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
flask-inliner-1.0.0.zip
(2.5 kB) Copy SHA256 Hash SHA256
Source Sep 18, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting