o
    .d|                     @   sN   d Z ddlmZ ddlmZ ddlmZ ddlmZ dededefd	d
Z	dS )@Stringify a Python object ready for output in a Liquid template.    )Any)Markup)escapesoft_strval
autoescapereturnc                 C   s   t | ts|rt| drnGt | trt|  } n;| du r d} n4t | tr?|r4tddd | D } n ddd | D } nt | trP| j	 d| j
d  } nt| } |rZt| } t | tsaJ | S )	r   __html__N c                 s       | ]}t |V  qd S Nr   .0itm r   H/var/www/Matress/matenv/lib/python3.10/site-packages/liquid/stringify.py	<genexpr>       z#to_liquid_string.<locals>.<genexpr>c                 s   r   r   r   r   r   r   r   r      r   z..   )
isinstancestrhasattrboollowerlistr   joinrangestartstopr   )r   r	   r   r   r   to_liquid_string	   s"   


r!   N)
__doc__typingr   liquidr   r   r   r   r   r!   r   r   r   r   <module>   s    