{
"info": {
"author": "Steeve Chailloux",
"author_email": "steeve.chailloux@orus.io",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"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.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Internet :: WWW/HTTP"
],
"description": "Django Compressor Mako\n======================\n\n.. image:: https://codecov.io/gh/orus-io/django-compressor-mako/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/orus-io/django-compressor-mako\n\n.. image:: https://travis-ci.org/orus-io/django-compressor-mako.svg?branch=master\n :target: https://travis-ci.org/orus-io/django-compressor-mako\n\n.. image:: https://img.shields.io/pypi/v/django_compressor_mako.svg\n :target: https://pypi.python.org/pypi/django_compressor_mako\n\nThis module provide `mako template`_ support for `Django Compressor`_.\n\nUsage\n-----\n\nAll you need to do is to import extension namespace and using it with mako\nsyntax:\n\n.. code-block:: mako\n\n <%namespace name=\"compress\" module=\"django_compressor_mako\"/>\n\n <%compress:compress kind=\"css\">\n \n %compress:compress>\n\nAlmost all django-compressor arguments are supported but must be explicitly\nnamed:\n\n* ``kind``: mandatory, \"css\" or \"js\".\n* ``mode``: optional, compressor mode, \"file\" or \"inline\".\n* ``name``: is not supported and will raise a ``NotImplementedError``\n\nOutputs **cannot** be named and are just named using hash plus extension.\n\nAlso note that mako template doesn't allow blocks inside of ``<%call>``, that\nmeans **you cannot use the following syntax**:\n\n.. code-block:: mako\n\n <%namespace name=\"compress\" module=\"django_compressor_mako\"/>\n\n <%compress:compress kind=\"css\">\n <%block name=\"more_css\"/>\n %compress:compress>\n\nOffline compression\n-------------------\n\nIn order to use offline compression you must first create cached compressed\nfiles and manifest using ``python ./manage.py compress_mako``.\n\nShorter functions\n-----------------\n\nAdditionally two shorter functions are provided, ``css`` and ``js``, same\narguments can be passed except ``kind`` which is set by default depending on\nwhich one is used, eg.:\n\n.. code-block:: mako\n\n <%namespace name=\"compress\" module=\"django_compressor_mako\"/>\n\n <%compress:css>\n \n %compress:css>\n\n <%compress:js>\n