o
    a"<f  ã                   @   s   G d d„ dƒZ dS )c                   @   sH   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Z	dd„ Z
dS )Ú
ParserBasezC
    Base parser to be subclassed when creating an own parser.
    c                 C   s
   || _ d S )N)Úcontent)Úselfr   © r   úM/var/www/html/kck/venv/lib/python3.10/site-packages/compressor/parser/base.pyÚ__init__   s   
zParserBase.__init__c                 C   ó   t ‚)zJ
        Return an iterable containing the css elements to handle
        ©ÚNotImplementedError©r   r   r   r   Ú	css_elems   ó   zParserBase.css_elemsc                 C   r   )zI
        Return an iterable containing the js elements to handle
        r   r
   r   r   r   Újs_elems   r   zParserBase.js_elemsc                 C   r   )zQ
        Return the dictionary like attribute store of the given element
        r   ©r   Úelemr   r   r   Úelem_attribs   r   zParserBase.elem_attribsc                 C   r   )z9
        Return the content of the given element
        r   r   r   r   r   Úelem_content   r   zParserBase.elem_contentc                 C   r   )z6
        Return the name of the given element
        r   r   r   r   r   Ú	elem_name    r   zParserBase.elem_namec                 C   r   )zD
        Return the string representation of the given elem
        r   r   r   r   r   Úelem_str&   r   zParserBase.elem_strN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r   r   r   r   r      s    r   N)r   r   r   r   r   Ú<module>   s    