HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/mako/ext/__pycache__/turbogears.cpython-37.pyc
B

�C]u�@s8ddlmZddlmZddlmZGdd�de�ZdS)�)�compat)�TemplateLookup)�Templatec@s.eZdZdZddd�Zd
dd�Zdd
d�ZdS)�TGPluginz&TurboGears compatible Template Plugin.N�makcCs�||_||_|si}i}x@|��D]4\}}|�d�rF|||dd�<q"|dkr"|||<q"Wtf|�|_i|_x.t�t	j
�dD]}||kr~|||j|<q~WdS)Nzmako.�)ZdirectoriesZfilesystem_checksZmodule_directoryr)�extra_vars_func�	extension�items�
startswithr�lookup�tmpl_optionsrZinspect_getargspecr�__init__)�selfr�optionsr	Zlookup_options�k�v�kw�r�D/opt/alt/python37/lib/python3.7/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�htmlFcCs6t|tj�r|�|�}|jr*|�|���|jf|�S)N)�
isinstancer�string_typesrr�update�render)r�info�format�fragment�templaterrrr3s

zTGPlugin.render)NNr)N)rFN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrs

rN)�makorZmako.lookuprZ
mako.templater�objectrrrrr�<module>s