Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/mako/ext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/mako/ext/__pycache__/turbogears.cpython-38.pyc
U

O��g]�@s6ddlmZddlmZddlmZGdd�d�ZdS)�)�compat)�TemplateLookup)�Templatec@s.eZdZdZddd�Zd
dd�Zdd
d�ZdS)�TGPluginz&TurboGears compatible Template Plugin.N�makcCs�||_||_|si}i}|��D]4\}}|�d�rD|||dd�<q |dkr |||<q tf|�|_i|_t�t	j
�dD]}||krx|||j|<qxdS)Nzmako.�)�directoriesZfilesystem_checksZmodule_directoryr)�extra_vars_func�	extension�items�
startswithr�lookup�tmpl_optionsrZinspect_getargspecr�__init__)�selfr	�optionsr
Zlookup_options�k�v�kw�r�@/opt/cppython/lib/python3.8/site-packages/mako/ext/turbogears.pyrs

zTGPlugin.__init__cCsD|dk	rt|f|j�Sd|kr8d|�dd�d|j}|j�|�S)z(Loads a template from a file or a stringN�/�.)rr�replacer
r
Zget_template)rZtemplatenameZtemplate_stringrrr�
load_template&s�zTGPlugin.load_template�htmlFcCs4t|t�r|�|�}|jr(|�|���|jf|�S)N)�
isinstance�strrr	�update�render)r�info�format�fragment�templaterrrr3s


zTGPlugin.render)NNr)N)rFN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrs

�rN)�makorZmako.lookuprZ
mako.templaterrrrrr�<module>s

F1le Man4ger