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/autohandler.pyc
�
�ǚPc@sCdZddlZddlZddlZdd�Zd�ZdS(s�adds autohandler functionality to Mako templates.

requires that the TemplateLookup class is used with templates.

usage:

<%!
    from mako.ext.autohandler import autohandler
%>
<%inherit file="${autohandler(template, context)}"/>


or with custom autohandler filename:

<%!
    from mako.ext.autohandler import autohandler
%>
<%inherit file="${autohandler(template, context, name='somefilename')}"/>

i����NtautohandlercCs,|j}|jj}|jsMy|jt||fSWqMtk
rIqMXntjdt	j
|��|g}x�t|�r�ddj|�}||kr�t
||�r�|js�|jjt||f|�S|Snt|�dkr�Pn|g|d)qrW|js$|jjt||fd�SdSdS(Ns([^/]+)t/ii����(tlookuptmodulet
_template_uritfilesystem_checkst
_uri_cacheRtKeyErrortretfindallt	posixpathtdirnametlentjoint_file_existst
setdefaulttNone(ttemplatetcontexttnameRRttokenstpath((sE/opt/alt/python27/lib/python2.7/site-packages/mako/ext/autohandler.pyRs,		
"				cCsOtjdd|�}x3|jD]$}tjj|d|�rtSqWtSdS(Ns^/tR(RtsubtdirectoriestosRtexiststTruetFalse(RRtpsubtd((sE/opt/alt/python27/lib/python2.7/site-packages/mako/ext/autohandler.pyR:s
(t__doc__R
RRRR(((sE/opt/alt/python27/lib/python2.7/site-packages/mako/ext/autohandler.pyt<module>s$