o
    þÞh   ã                   @   s4   d Z ddlmZmZ ddlmZ G dd„ deƒZdS )z9
Wrapper for loading templates from a plain Python dict.
é    )ÚOriginÚTemplateDoesNotExisté   )ÚLoaderc                       s,   e Zd Z‡ fdd„Zdd„ Zdd„ Z‡  ZS )r   c                    s   || _ tƒ  |¡ d S ©N)Útemplates_dictÚsuperÚ__init__)ÚselfÚenginer   ©Ú	__class__© ú^/var/www/html/premium_crap/venv/lib/python3.10/site-packages/django/template/loaders/locmem.pyr	      s   zLoader.__init__c                 C   s&   z| j |j W S  ty   t|ƒ‚w r   )r   ÚnameÚKeyErrorr   )r
   Úoriginr   r   r   Úget_contents   s
   ÿzLoader.get_contentsc                 c   s   � t ||| d�V  d S )N)r   Útemplate_nameÚloader)r   )r
   r   r   r   r   Úget_template_sources   s   €ýzLoader.get_template_sources)Ú__name__Ú
__module__Ú__qualname__r	   r   r   Ú__classcell__r   r   r   r   r   
   s    r   N)Ú__doc__Údjango.templater   r   Úbaser   Ú
BaseLoaderr   r   r   r   Ú<module>   s    