Ńň -!Lc @ sC d Z d d k Z d d k Z d d k Z d d Z d Z d S( 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˙˙˙˙Nt autohandlerc C s; | i } | i i } | i p2 y | i t | | f SWqQ t j o qQ Xn t i d t i | | g } x t | o d d i | } | | j o? t | | o/ | i p | i i t | | f | S| Sn t | d j o Pn | g | d )qv W| i p | i i t | | f d Sd Sd S( Ns ([^/]+)t /i iţ˙˙˙( t lookupt modulet _template_urit filesystem_checkst _uri_cacheR t KeyErrort ret findallt posixpatht dirnamet lent joint _file_existst setdefaultt None( t templatet contextt nameR R t tokenst path( ( s8 /usr/lib/python2.6/site-packages/mako/ext/autohandler.pyR s* " c C sQ t i d d | } x5 | i D]&