o
    ‚.Údp  ã                   @  sB  d dl mZ d dlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 dd	l
mZ dd
l
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ erzd dlmZ dZd*dd„Zd*dd„Zd*dd „Zd*d!d"„Zd*d#d$„Zd*d%d&„Zd*d'd(„Z d)S )+é    )Úannotations)ÚTYPE_CHECKINGé   )ÚJSON)Úindex)Ú
script_tag)Úsort_numeric)Ústylesheet_tag)ÚBlockTag)ÚCallTag)Ú
ExtendsTag)ÚIfNotTag)ÚInlineIfAssignTag)ÚInlineIfAssignTagWithParens)ÚInlineIfEchoTag)ÚInlineIfEchoTagWithParens)ÚInlineIfStatement)ÚInlineIfStatementWithParens)ÚMacroTag)ÚWithTag)ÚEnvironment)Ú#add_extended_inline_expression_tagsÚadd_filtersÚadd_inline_expression_tagsÚadd_macro_tagsÚadd_tags_and_filtersÚadd_tagsr
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r	   r   Úenvr   ÚreturnÚNonec                 C  ó"   |   t¡ |   t¡ |   t¡ dS )zËAdd extra inline expression tags to an environment.

    Replace standard implementations of the output statement,
    `echo` tag and `assign` tag with ones that support inline `if`
    expressions.
    N)Úadd_tagr   r   r   ©r   © r#   úM/var/www/Matress/matenv/lib/python3.10/site-packages/liquid/extra/__init__.pyr   5   ó   

r   c                 C  r    )zÕAdd extra extended inline expressions tags to an environment.

    Replace standard implementations of the output statement,
    `echo` tag and `assign` tag with ones that support inline `if`
    expressions.
    N)r!   r   r   r   r"   r#   r#   r$   r   A   r%   r   c                 C  ó   |   t¡ |   t¡ dS )z>Register both the `macro` and `call` tags with an environment.N)r!   r   r   r"   r#   r#   r$   r   M   ó   
r   c                 C  r&   )zARegister both the `extends` and `block` tags with an environment.N)r!   r
   r   r"   r#   r#   r$   Úadd_inheritance_tagsS   r'   r(   c                 C  s0   |   t¡ |   t¡ t| ƒ t| ƒ t| ƒ dS )z,Register all extra tags with an environment.N)r!   r   r   r   r(   r   r"   r#   r#   r$   r   Y   s
   

r   c                 C  sB   |   dt¡ |   dtƒ ¡ |   dt¡ |   dt¡ |   dt¡ dS )zJRegister all extra filters with an environment with their default options.r   Újsonr   r   r	   N)Ú
add_filterr   r   r   r   r	   r"   r#   r#   r$   r   b   s
   r   c                 C  s   t | ƒ t| ƒ dS )z8Register all extra tags and filters with an environment.N)r   r   r"   r#   r#   r$   r   k   s   r   N)r   r   r   r   )!Ú
__future__r   Útypingr   Úfiltersr   r   r   r   r	   Útagsr
   r   r   r   r   r   r   r   r   r   r   r   Úliquidr   Ú__all__r   r   r   r(   r   r   r   r#   r#   r#   r$   Ú<module>   s:    





		