{ "info": { "author": "Ch Ray", "author_email": "ray@jhink.com", "bugtrack_url": null, "classifiers": [ "Environment :: Other Environment", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Communications :: Email", "Topic :: Text Processing :: Markup :: HTML" ], "description": "[![Build Status](https://travis-ci.org/wejhink/django-mailcss.png?branch=master)](https://travis-ci.org/wejhink/django-mailcss)\n\n\n## About\nSending a mail with CSS for is currently a surprisingly large hassle.\nThis library aims to make it a breeze in the Django template language.\n\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_mailcss\n\nAdd ```django_mailcss``` 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_mailcss')\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 mailcss %}\n{% mailcss \"css/extra-padding.css\" %}\n \n \n
\n Something in need of styling.\n
\n \n \n{% endmailcss %}\n```\n\n#### Step 4: Prepare to be Wowed\n\n```html\n\n \n
\n Something in need of styling.\n
\n \n\n```\n\n## Acknowledgements\nThanks to Jeremy Nauta, Philip Kimmey and Keith for [django-inlinecss](https://github.com/roverdotcom/django-inlinecss)\n\nThanks to Tanner Netterville for his efforts on [Pynliner](https://github.com/rennat/pynliner).\n\nThanks to Thomas Yip for his unit tests on the `soupselect` module. These tests\nhelped on getting the core CSS2 selectors to work.\n\n## License\n\nMIT license. See LICENSE.md for more detail.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/wejhink/django-mailcss/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wejhink/django-mailcss", "keywords": "html,css,inline,style,email", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-mailcss", "package_url": "https://pypi.org/project/django-mailcss/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-mailcss/", "project_urls": { "Download": "https://github.com/wejhink/django-mailcss/releases", "Homepage": "https://github.com/wejhink/django-mailcss" }, "release_url": "https://pypi.org/project/django-mailcss/0.1.0/", "requires_dist": [ "mock", "pynliner" ], "requires_python": "", "summary": "A Django app useful for inlining CSS (primarily for e-mails)", "version": "0.1.0" }, "last_serial": 2890332, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "dc9f08239cfe52f71a6538c57a2f4184", "sha256": "6fd825af91a51cc573af494d32a72f78eb14153d4ab31a0bb260ce834d4d0cbb" }, "downloads": -1, "filename": "django_mailcss-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "dc9f08239cfe52f71a6538c57a2f4184", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9482, "upload_time": "2017-05-22T10:06:18", "url": "https://files.pythonhosted.org/packages/9e/9a/461cb1ec4d963de53d4efb8837aa3cfe7c72af0e2ace322f419e76595773/django_mailcss-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1a446eaae6808f83d6fdb3ac6f9ec3b3", "sha256": "9d7d83d611da6da566a3fc27d351c1cd4282ffb8891731a69a74f6e4203486bb" }, "downloads": -1, "filename": "django-mailcss-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1a446eaae6808f83d6fdb3ac6f9ec3b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5461, "upload_time": "2017-05-22T10:06:20", "url": "https://files.pythonhosted.org/packages/cf/54/85618179d6cbf36343c19d89b471b8d7eae4d95b76c4f89bfd8f3a20a2f5/django-mailcss-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dc9f08239cfe52f71a6538c57a2f4184", "sha256": "6fd825af91a51cc573af494d32a72f78eb14153d4ab31a0bb260ce834d4d0cbb" }, "downloads": -1, "filename": "django_mailcss-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "dc9f08239cfe52f71a6538c57a2f4184", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9482, "upload_time": "2017-05-22T10:06:18", "url": "https://files.pythonhosted.org/packages/9e/9a/461cb1ec4d963de53d4efb8837aa3cfe7c72af0e2ace322f419e76595773/django_mailcss-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1a446eaae6808f83d6fdb3ac6f9ec3b3", "sha256": "9d7d83d611da6da566a3fc27d351c1cd4282ffb8891731a69a74f6e4203486bb" }, "downloads": -1, "filename": "django-mailcss-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1a446eaae6808f83d6fdb3ac6f9ec3b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5461, "upload_time": "2017-05-22T10:06:20", "url": "https://files.pythonhosted.org/packages/cf/54/85618179d6cbf36343c19d89b471b8d7eae4d95b76c4f89bfd8f3a20a2f5/django-mailcss-0.1.0.tar.gz" } ] }