{ "info": { "author": "Randall Degges", "author_email": "r@rdegges.com", "bugtrack_url": null, "classifiers": [], "description": "# pelican-minify\n\n[![PyPI Version](https://img.shields.io/pypi/v/pelican-minify.svg)](https://pypi.python.org/pypi/pelican-minify)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/pelican-minify.svg)](https://pypi.python.org/pypi/pelican-minify)\n[![Build Status](https://secure.travis-ci.org/rdegges/pelican-minify.png?branch=master)](https://travis-ci.org/rdegges/pelican-minify)\n\nAn HTML minification plugin for\n[Pelican](http://pelican.readthedocs.org/en/latest/), the static site generator.\n\n![Pelican Logo](https://github.com/rdegges/pelican-minify/raw/master/pelican.png)\n\n\n## Install\n\nTo install the library, you can use\n[pip](http://www.pip-installer.org/en/latest/).\n\n```bash\n$ pip install pelican-minify\n```\n\n\n## Usage\n\nTo use `pelican-minify`, you need to make only a single change to your\n`pelicanconf.py` file (the configuration file that Pelican uses to generate\nyour static site.\n\nUpdate your `PLUGINS` global, and append `minify` to the list, eg:\n\n``` python\n# pelicanconf.py\n\n# ...\n\nPLUGINS = [\n # ...\n 'minify',\n # ...\n]\n\n# ...\n```\n\nThe next time you build your Pelican site, `pelican-minify` will automatically\nminify your Pelican pages after they've been generated.\n\n`pelican-minify` can also be configured by setting `MINIFY` to a hash containing\n[parameters to htmlmin](https://htmlmin.readthedocs.org/en/latest/reference.html#htmlmin.minify), eg:\n\n``` python\n# pelicanconf.py\n\n# ...\n\nMINIFY = {\n 'remove_comments': True,\n 'remove_all_empty_space': True,\n 'remove_optional_attribute_quotes': False\n}\n\n# ...\n```\n\nThis reduces file size and obscures the public source code, but keep in\nmind--minifying your static site will increase your Pelican build times, as it\nadds extra file processing for each page generated.\n\n**NOTE**: You should probably include the `minify` plugin at the very bottom of\nyour `PLUGINS` array. This will ensure it is the last thing to run, and\ndoesn't prematurely gzip any files.\n\n\n## Changelog\n\nv0.1: 12-4-2012\n\n - First release!\n\nv0.2: 2-12-2013\n\n - Fixing issue with unicode characters.\n - Upgrading django-htmlmin dependency.\n\nv0.3: 2-12-2013\n\n - Fixing tests.\n\nv0.4: 2-15-2013\n\n - Upgrading django-htmlmin.\n\nv0.5: 8-28-2014\n\n - Python 3 compatibility (thanks @AlexJF!).\n\nv0.6: 9-9-2014\n\n - Fixing unicode bug (thanks @kura!).\n\nv0.7: 11-4-2014\n\n - Making minification work on .htm files (thanks @Undeterminant!).\n\nv0.8: 5-12-2015\n\n - No longer removing optional quotes from HTML elements. This provides\n better compatibility across browsers / etc.\n\nv0.9: 11-25-2015\n\n - Making minify library configurable.\n - Removing aggressive whitespace removal (*avoids issues*).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rdegges/pelican-minify", "keywords": "pelican blog static minify html minification", "license": "UNLICENSE", "maintainer": null, "maintainer_email": null, "name": "pelican-minify", "package_url": "https://pypi.org/project/pelican-minify/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pelican-minify/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rdegges/pelican-minify" }, "release_url": "https://pypi.org/project/pelican-minify/0.9/", "requires_dist": null, "requires_python": null, "summary": "An HTML minification plugin for Pelican, the static site generator.", "version": "0.9" }, "last_serial": 1834175, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1760893f56b445d9137cb10fadf8e52a", "sha256": "95f10632ccf97f46794b7cc053167f8865f51ebf2f91a354854ffae3dfdcc4e0" }, "downloads": -1, "filename": "pelican-minify-0.1.tar.gz", "has_sig": false, "md5_digest": "1760893f56b445d9137cb10fadf8e52a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3068, "upload_time": "2012-12-04T08:25:27", "url": "https://files.pythonhosted.org/packages/33/ea/d3e4b42caa74b666b67efe333a20651b9f4b27abbe2f6a0d244ee86093cc/pelican-minify-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "7758c85f5164fc7bd82e0d79cba4c1bc", "sha256": "af66f4c04779e023e30742d54f85374d1b25b17dbe21299571e439ae686acd6c" }, "downloads": -1, "filename": "pelican-minify-0.2.tar.gz", "has_sig": false, "md5_digest": "7758c85f5164fc7bd82e0d79cba4c1bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 222594, "upload_time": "2013-02-12T20:39:55", "url": "https://files.pythonhosted.org/packages/b7/7f/ed2f11ea885f6b3d59c85e8ed6f081826c94d26ba0d4d050aba77e013914/pelican-minify-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "d643f623c38a9e7835267cdc9f974202", "sha256": "5833b8d6213e9a4f29478dcdf2483b3e53445f36ffe7d30119a6da267de0b891" }, "downloads": -1, "filename": "pelican-minify-0.3.tar.gz", "has_sig": false, "md5_digest": "d643f623c38a9e7835267cdc9f974202", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 222648, "upload_time": "2013-02-13T07:14:30", "url": "https://files.pythonhosted.org/packages/e3/3a/700c25dce9034a56b8f032bb89645b38700eb0664bcea06859ae8f22a2d9/pelican-minify-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "d7475fab5fe2a82f15f51928e853ae75", "sha256": "f33f5752f371729d2a6327825e9e779816b56c2e90a6a796928a50005e5f4861" }, "downloads": -1, "filename": "pelican-minify-0.4.tar.gz", "has_sig": false, "md5_digest": "d7475fab5fe2a82f15f51928e853ae75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 222804, "upload_time": "2013-02-16T00:56:51", "url": "https://files.pythonhosted.org/packages/ef/bc/cfc1e15c8572b652da3ce732b73dee5347eb41024ddacf7489b792cf3318/pelican-minify-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "4f0f7262c97c945bf0cd51afd42e27da", "sha256": "069303164ea77190be96342c73305ee87006aab07a0451aa6404cf261d79b582" }, "downloads": -1, "filename": "pelican-minify-0.5.tar.gz", "has_sig": false, "md5_digest": "4f0f7262c97c945bf0cd51afd42e27da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 222936, "upload_time": "2014-08-29T01:07:16", "url": "https://files.pythonhosted.org/packages/e4/c7/e2894df02ca09494825ebfc0b36a078bb87cbaa3d5a8665f3194cb205309/pelican-minify-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "0f5cd0bba0a47706c4ad26a2a05f43ab", "sha256": "36995533e6eff2ecfd351fbbafbe7d4ebc5b71315626b03aefd264769cd1ea6a" }, "downloads": -1, "filename": "pelican-minify-0.6.tar.gz", "has_sig": false, "md5_digest": "0f5cd0bba0a47706c4ad26a2a05f43ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 222913, "upload_time": "2014-09-10T03:54:31", "url": "https://files.pythonhosted.org/packages/1b/c7/83c479e7f69a02f411ceac7f2575a1c88922ec5b0234c23c5644bd21d5b1/pelican-minify-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "e1b996f63b999cc13e013bc665b0ae49", "sha256": "5d1bcc62d57f8c22a2fe8fc652d5ee47f25b2aed3cdb800f9b6cd32101d4f2c8" }, "downloads": -1, "filename": "pelican-minify-0.7.tar.gz", "has_sig": false, "md5_digest": "e1b996f63b999cc13e013bc665b0ae49", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 222984, "upload_time": "2014-11-04T23:58:52", "url": "https://files.pythonhosted.org/packages/fb/c4/16dbef66d6c8d4ef1654ab82e75f600f76562e362b4a8bb459c98a5263d8/pelican-minify-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "767eeaf3fd713483b09d9d1a74cca46c", "sha256": "6f1c4b62f61a5cbe2c1cec49c7d861beb36ae04af3d613dc0796cba1c041ef49" }, "downloads": -1, "filename": "pelican_minify-0.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "767eeaf3fd713483b09d9d1a74cca46c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4694, "upload_time": "2015-05-13T00:37:22", "url": "https://files.pythonhosted.org/packages/42/3d/c7fcb7e9a98e01462af0fbba084f48d6f0de223808b5a1e5509906d1c021/pelican_minify-0.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f7456b6254c0ca8ef3e1ce9e13c250c6", "sha256": "d81238d82e9b20b8923626302563ea69d7d4a2dddde23a462c8ccce20317b393" }, "downloads": -1, "filename": "pelican-minify-0.8.tar.gz", "has_sig": false, "md5_digest": "f7456b6254c0ca8ef3e1ce9e13c250c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 223097, "upload_time": "2015-05-13T00:37:19", "url": "https://files.pythonhosted.org/packages/bc/27/92cae829a400273bde02d659fdf0fbeb859e9ff738d0c60909e8dab4500e/pelican-minify-0.8.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "6b8712eea3a3522a7c3dfb3761f3b604", "sha256": "fcefce477d4a24c8972ec8871738100f144e329201ab2b45aab8b5d3b7ba8e65" }, "downloads": -1, "filename": "pelican_minify-0.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b8712eea3a3522a7c3dfb3761f3b604", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5230, "upload_time": "2015-11-26T03:44:12", "url": "https://files.pythonhosted.org/packages/20/44/0be63376585d194a1da264b93c497662cd89edff0f19905f4e794fdf1c11/pelican_minify-0.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c393d07f5666b9db8c490c9ff5443af", "sha256": "a0ffa9b1f15089bc4aec4692c5feba87356d427a7946ffd8b6222ac4c7758773" }, "downloads": -1, "filename": "pelican-minify-0.9.tar.gz", "has_sig": false, "md5_digest": "3c393d07f5666b9db8c490c9ff5443af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 223517, "upload_time": "2015-11-26T03:43:59", "url": "https://files.pythonhosted.org/packages/91/46/9956d4ef70ddf440e4f89a0fcb455eb8311eeddf7d7bbeb6fa6126ca5161/pelican-minify-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b8712eea3a3522a7c3dfb3761f3b604", "sha256": "fcefce477d4a24c8972ec8871738100f144e329201ab2b45aab8b5d3b7ba8e65" }, "downloads": -1, "filename": "pelican_minify-0.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b8712eea3a3522a7c3dfb3761f3b604", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5230, "upload_time": "2015-11-26T03:44:12", "url": "https://files.pythonhosted.org/packages/20/44/0be63376585d194a1da264b93c497662cd89edff0f19905f4e794fdf1c11/pelican_minify-0.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c393d07f5666b9db8c490c9ff5443af", "sha256": "a0ffa9b1f15089bc4aec4692c5feba87356d427a7946ffd8b6222ac4c7758773" }, "downloads": -1, "filename": "pelican-minify-0.9.tar.gz", "has_sig": false, "md5_digest": "3c393d07f5666b9db8c490c9ff5443af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 223517, "upload_time": "2015-11-26T03:43:59", "url": "https://files.pythonhosted.org/packages/91/46/9956d4ef70ddf440e4f89a0fcb455eb8311eeddf7d7bbeb6fa6126ca5161/pelican-minify-0.9.tar.gz" } ] }