o
    ~¨Êh  ã                   @   s(   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 t|ƒ|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
    Úfile)ÚnodelistÚkindÚmode)Úcontext)r   r   Úrender)r   ÚdataÚname© r   úL/var/www/html/env/lib/python3.10/site-packages/compressor/contrib/sekizai.pyÚcompress   s   r   N)Ú__doc__Ú compressor.templatetags.compressr   Údjango.template.baser   r   r   r   r   r   Ú<module>   s    