{ "info": { "author": "Alex Hayes", "author_email": "alex@alution.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: OS Independent", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Communications", "Topic :: Internet :: WWW/HTTP", "Topic :: Other/Nonlisted Topic", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "================\nDjango Premailer\n================\n\nDjango template tag that turns CSS blocks into style attributes using premailer_.\n\n.. image:: https://travis-ci.org/alexhayes/django-premailer.png?branch=master\n :target: https://travis-ci.org/alexhayes/django-premailer\n :alt: Build Status\n\n.. image:: https://landscape.io/github/alexhayes/django-premailer/master/landscape.png\n :target: https://landscape.io/github/alexhayes/django-premailer/\n :alt: Code Health\n\n.. image:: https://codecov.io/github/alexhayes/django-premailer/coverage.svg?branch=master\n :target: https://codecov.io/github/alexhayes/django-premailer?branch=master\n :alt: Code Coverage\n\n.. image:: https://readthedocs.org/projects/django-premailer/badge/\n :target: http://django-premailer.readthedocs.org/en/latest/\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/pypi/v/django-premailer.svg\n :target: https://pypi.python.org/pypi/django-premailer\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/pyversions/django-premailer.svg\n :target: https://pypi.python.org/pypi/django-premailer/\n :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/dd/django-premailer.svg\n :target: https://pypi.python.org/pypi/django-premailer/\n :alt: Downloads\n\n\nInstall\n-------\n\n.. code-block:: bash\n\n pip install django-premailer\n\nAdd ``django_premailer`` to your ``INSTALLED_APPS``:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n '...',\n 'django_premailer'\n )\n\n\nExample Usage\n-------------\n\nSimply use the ``premailer`` template tag around HTML where you need inline CSS: \n\n.. code-block:: html\n\n {% load premailer %}\n\n {% premailer \"http://example.com\" %}\n \n \n

{{ eggs }}

\n

Hej

\n \n \n \n \n
\n \n {% endpremailer %}\n\nThe rendered template would look as so;\n\n.. code-block:: html\n\n \n \n \n

Sausage

\n

Hej

\n \n \n \n \n
\n \n \n\n\nSettings\n--------\n\nIf you need more control over premailer's init parameters you can define them using ``PREMAILER_OPTIONS``.\n\nFor example, in your settings file;\n\n.. code-block:: python\n\n PREMAILER_OPTIONS = dict(base_url='http://example.com',\n remove_classes=False)\n\nSee https://github.com/peterbe/premailer/blob/master/premailer/premailer.py#L149 for a list of other possible options.\n\nThanks\n------\n\n- Special thanks to http://roi.com.au for supporting this project.\n- Thanks to https://github.com/roverdotcom/django-inlinecss for initial inspiration.\n\nAuthor\n------\n\nAlex Hayes \n\n\n.. _premailer: https://github.com/peterbe/premailer", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/alexhayes/django-premailer", "keywords": "premailer,inline css,django,templatetag,html,lxml,email,mail,style", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-premailer", "package_url": "https://pypi.org/project/django-premailer/", "platform": "any", "project_url": "https://pypi.org/project/django-premailer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/alexhayes/django-premailer" }, "release_url": "https://pypi.org/project/django-premailer/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Django template tag that turns CSS blocks into style attributes using premailer.", "version": "0.2.0" }, "last_serial": 2427726, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "115de8dcd946f0b3ddbf7dacdf4c42a2", "sha256": "37c795cc1665ffc26895b1b918ea911025b0fa521227d4ca039fe2e7935e2992" }, "downloads": -1, "filename": "django_premailer-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "115de8dcd946f0b3ddbf7dacdf4c42a2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10295, "upload_time": "2016-10-28T03:01:01", "url": "https://files.pythonhosted.org/packages/cd/8a/2b1848659d3032ad2cbdcb43e36bdcbfee4a226f4bf7386e2b62f082ebf5/django_premailer-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "67cba3b214d800573978e7f290722f38", "sha256": "3e0d924edf38e1db74d32764e481d6974b29222083b4c8ea01dcfbda55978c3a" }, "downloads": -1, "filename": "django-premailer-0.1.0.tar.gz", "has_sig": false, "md5_digest": "67cba3b214d800573978e7f290722f38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4224, "upload_time": "2014-11-20T01:53:04", "url": "https://files.pythonhosted.org/packages/2c/c1/f3634e119ffe79652a2ebe7da1d5a7d00dae6febf645b4c3e1a2438e1168/django-premailer-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c64ad0020f457a071ca93a3d7da28dea", "sha256": "307e386e3c4b3e0d030f172c2af84eb6c64724b36f568046b4515be3f3fed357" }, "downloads": -1, "filename": "django_premailer-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c64ad0020f457a071ca93a3d7da28dea", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 10289, "upload_time": "2016-06-20T21:38:08", "url": "https://files.pythonhosted.org/packages/8a/1e/4424f664eff19fc1d448804af7a3158a4e0e3b2dd23d2bebcf6341a8220c/django_premailer-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf9a15a3765dcc3fc237db04acdcb487", "sha256": "561b8a10bd1673794d55830c1a6479cfdfdb61d314f24f5ebc5685cd32023df6" }, "downloads": -1, "filename": "django-premailer-0.2.0.tar.gz", "has_sig": false, "md5_digest": "cf9a15a3765dcc3fc237db04acdcb487", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 880087, "upload_time": "2016-06-20T21:38:02", "url": "https://files.pythonhosted.org/packages/4b/66/8235bcabee77e991d464153b81381d9511d32dff4832ee387486bfaf4378/django-premailer-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c64ad0020f457a071ca93a3d7da28dea", "sha256": "307e386e3c4b3e0d030f172c2af84eb6c64724b36f568046b4515be3f3fed357" }, "downloads": -1, "filename": "django_premailer-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c64ad0020f457a071ca93a3d7da28dea", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 10289, "upload_time": "2016-06-20T21:38:08", "url": "https://files.pythonhosted.org/packages/8a/1e/4424f664eff19fc1d448804af7a3158a4e0e3b2dd23d2bebcf6341a8220c/django_premailer-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf9a15a3765dcc3fc237db04acdcb487", "sha256": "561b8a10bd1673794d55830c1a6479cfdfdb61d314f24f5ebc5685cd32023df6" }, "downloads": -1, "filename": "django-premailer-0.2.0.tar.gz", "has_sig": false, "md5_digest": "cf9a15a3765dcc3fc237db04acdcb487", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 880087, "upload_time": "2016-06-20T21:38:02", "url": "https://files.pythonhosted.org/packages/4b/66/8235bcabee77e991d464153b81381d9511d32dff4832ee387486bfaf4378/django-premailer-0.2.0.tar.gz" } ] }