Metadata-Version: 1.0
Name: django-bundledmedia
Version: 0.1b2
Summary: Django application for adding compressed CSS and JS files in some prepared slots
Home-page: UNKNOWN
Author: Manuel Saelices
Author-email: msaelices@yaco.es
License: UNKNOWN
Description: django-bundledmedia
        ===================
        
        ``django-bundledmedia`` is a Django application for adding compressed CSS and
        JS files in some prepared slots.
        
        This functionality was splitted out of Merengue CMS.
        
        Installing
        ----------
        
        * Install package from pypi::
        
            $ easy_install django-bundledmedia
        
        * Include ``bundledmedia`` in the ``INSTALLED_APPS`` setting.
        
        * Include ``bundledmedia.middleware.BundledMediaMiddleware`` in the ``MIDDLEWARE_CLASSES`` setting.
        
        Usage
        -----
        
        In your base template (i.e. ``base.html``)::
        
            {% load bundledmedia %}
            <html>
             <head>
             {# placeholder to allow plugins and other templates to add css assets #}
             {% bundledmedia "css" %}
             </head>
             <body>
              ...
              {# placeholder to allow plugins and other templates to add javascript assets #}
              {% bundledmedia "js" %}
             </body>
            </html>
        
        In your included template (i.e. ``inc.myblock.html``)::
        
           {% load bundledmedia %}
           {% addmedia "css" %}
             <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/myblock.css"/>
           {% endaddmedia %}
           {% addmedia "js" %}
             <script language="javascript" src="{{ MEDIA_URL }}js/jquery.myblock.js"></script>
           {% endaddmedia %}
           ...
        
        This code will render all chunks of code of all the included templates in the
        placeholders above.
        
        Compression
        -----------
        
        ``django-bundledmedia`` uses ``django-compressor`` to render compressed CSS and
        JS when the ``COMPRESS`` setting is set to ``True``
        
        0.1b2
        ----
        
         * Not generating compressed JS or CSS if there is no content to compress.
        
        0.1b1
        ----
        
         * More flexible naming conventions in the bundled blocks.
        
        0.1a
        ----
        
         * Initial version.
Platform: UNKNOWN
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Environment :: Web Environment
Classifier: Programming Language :: Python
