î
2!ìV  ã               @   s6   d  Z  d d l m Z d d l m Z d d „  Z d S)a/  
 source: https://gist.github.com/1311010
 Get django-sekizai, django-compessor (and django-cms) playing nicely together
 re: https://github.com/ojii/django-sekizai/issues/4
 using: https://github.com/django-compressor/django-compressor.git
 and: https://github.com/ojii/django-sekizai.git@0.6 or later
é    )ÚCompressorNode)ÚTextNodec             C   s+   t  d t | ƒ d | d d ƒ j d |  ƒ S)zØ
    Data is the string from the template (the list of js files in this case)
    Name is either 'js' or 'css' (the sekizai namespace)
    Basically passes the string through the {% compress 'js' %} template tag
    ÚnodelistÚkindÚmodeÚfileÚcontext)r   r   Úrender)r   ÚdataÚname© r   úG/tmp/pip-build-0sboevxh/django-compressor/compressor/contrib/sekizai.pyÚcompress   s    r   N)Ú__doc__Z compressor.templatetags.compressr   Zdjango.template.baser   r   r   r   r   r   Ú<module>   s   