Metadata-Version: 1.0
Name: django-jingo-offline-compressor
Version: 0.0.3
Summary: Using jingo and django_compressor but miss offline compression?
Home-page: http://github.com/peterbe/django-jingo-offline-compressor/
Author: Peter Bengtsson
Author-email: mail@peterbe.com
License: Copyright (c) 2012, Peter Bengtsson.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.

    3. Neither the name of jingo nor the names of its contributors may
       be used to endorse or promote products derived from this software
       without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Description: django-jingo-offline-compressor
        ===============================
        
        (c) Peter Bengtsson, <mail@peterbe.com>, 2012
        License: MIT
        
        For elitists (e.g. me) who use
        [jingo](https://github.com/jbalogh/jingo) to connect jinja2 with
        Django a major drawback is that you can't do offline compression if
        you use
        [django_compressor](https://github.com/jezdez/django_compressor).     
        
        The `compress` command that comes with `django_compressor` only works
        for regular Django templates. :( 
        Note though, that you can happily use `jingo` with `django_compressor`
        but it only works its magic during runtime. This package aims to solve
        that with a new command called `compress_jingo`.  
        
        To install
        ----------
        
        First install it by:
        
        ```
        pip install django-jingo-offline-compressor
        ```
        
        To start with, this assumes that you have `django_compressor` and
        `jingo` set up and working. 
        
        Add `jingo_offline_compressor` to your `INSTALLED_APPS`.
        
        To run
        ------
        
        Just like you'd run regular `django_compressor` you now run:
        
        ```
        ./manage.py compress_jingo
        ```
        
        And remember, unless you have `COMPRESS_OFFLINE = True` in your
        settings you might have to do: 
        
        ```
        ./manage.py compress_jingo --force
        ```
        
        That should now have created all the minified and concatenated files
        in your `STATIC_ROOT` in a sub-directory called `CACHE`.   
        
        **Note:** If you have other apps in `INSTALLED_APPS` that have been
        added to `JINGO_EXCLUDE_APPS` some of their templates might actually
        be included in warnings when you run `compress_jingo`. Just ignore at
        will.     
        
        What's next
        -----------
        
        It's early days but hopefully if this stabilize and prove its
        existence. Hopefully it can lead to a decent refactor and to have
        tests so it can be patched upstream to `django_compressor`. Hint hint
        @jezdez, keep an eye on me :)     
        
        
        
Platform: UNKNOWN
