{ "info": { "author": "Philip Kimmey", "author_email": "philip@rover.com", "bugtrack_url": null, "classifiers": [ "Environment :: Other Environment", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Communications :: Email", "Topic :: Text Processing :: Markup :: HTML" ], "description": "[](https://travis-ci.org/roverdotcom/django-inlinecss)\n\n## About\n\nInlining CSS is necessary for email generation and sending\nbut is currently a surprisingly large hassle.\n\nThis library aims to make it a breeze in the Django\ntemplate language.\n\n## Usage\n\n#### Step 1: Dependencies\n\n- BeautifulSoup\n- cssutils\n- Python 2.7+,3.4+\n- Django 1.11+\n\n\n#### Step 2: Install django_inlinecss\n\nAdd ```django_inlinecss``` to your ```settings.py```:\n\n```python\nINSTALLED_APPS = (\n 'django.contrib.auth',\n 'django.contrib.webdesign',\n 'django.contrib.contenttypes',\n '...',\n '...',\n '...',\n 'django_inlinecss')\n```\n\n#### Step 3: Use the templatetag\n\n1. Place your CSS file somewhere staticfiles can find it\n2. Create your template:\n\n```html\n{% load inlinecss %}\n{% inlinecss \"css/extra-padding.css\" %}\n \n
\n