HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/mako/ext/turbogears.pyc
�
�ǚPc@sRddlZddlZddlmZddlmZdefd��YZdS(i����N(tTemplateLookup(tTemplatetTGPlugincBs>eZdZdddd�Zdd�Zdedd�ZRS(s&TurboGears compatible Template Plugin.tmakcCs�||_||_|s!i}ni}xS|j�D]E\}}|jd�r`|||d<q4|dkr4|||<q4q4Wt|�|_i|_x>tjt	j
�dD]&}||kr�|||j|<q�q�WdS(Nsmako.itdirectoriestfilesystem_checkstmodule_directoryi(RRR(textra_vars_funct	extensiont	iteritemst
startswithRtlookupttmpl_optionstinspectt
getargspecRt__init__(tselfRtoptionsRtlookup_optionstktvtkw((sD/opt/alt/python27/lib/python2.7/site-packages/mako/ext/turbogears.pyRs				cCs\|dk	rt||j�Sd|krLd|jdd�d|j}n|jj|�S(s(Loads a template from a file or a stringt/t.N(tNoneRRtreplaceRRtget_template(Rttemplatenamettemplate_string((sD/opt/alt/python27/lib/python2.7/site-packages/mako/ext/turbogears.pyt
load_template$s
thtmlcCsMt|t�r!|j|�}n|jr@|j|j��n|j|�S(N(t
isinstancet
basestringRRtupdatetrender(Rtinfotformattfragmentttemplate((sD/opt/alt/python27/lib/python2.7/site-packages/mako/ext/turbogears.pyR"0s
	N(t__name__t
__module__t__doc__RRRtFalseR"(((sD/opt/alt/python27/lib/python2.7/site-packages/mako/ext/turbogears.pyRs(treR
tmako.lookupRt
mako.templateRtobjectR(((sD/opt/alt/python27/lib/python2.7/site-packages/mako/ext/turbogears.pyt<module>s