ٰMDddlmZddlmZddlmZGddZdS))compat)TemplateLookup)Templatec,eZdZdZd dZd dZ d dZdS) TGPluginz&TurboGears compatible Template Plugin.Nmakc`||_||_|si}i}|D]1\}}|dr|||dd<(|dvr|||<2t di||_i|_tjtj dD]}||vr|||j|<dS)Nzmako.) directoriesfilesystem_checksmodule_directoryr) extra_vars_func extensionitems startswithrlookup tmpl_optionsrinspect_getargspecr__init__)selfroptionsrlookup_optionskvkws /srv/buildsys-work-dir/castor/build_node/builder-2/WGSG1/unpkd_srcs/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/mako/ext/turbogears.pyrzTGPlugin.__init__s." GMMOO & &DAq||G$$ &()qu%%NNN$%q!$66~66 +H,=>>qA ; ;B^##(6r(:!"% ; ;c|t|fi|jSd|vr$d|ddzdz|jz}|j|S)z(Loads a template from a file or a stringN/.)rrreplacerr get_template)r templatenametemplate_strings r load_templatezTGPlugin.load_template&sm  &OAAt/@AA A l " "l**3444s:T^K  {'' 555rhtmlFct|tr||}|jr'|||jdi|S)Nr) isinstancestrr&rupdaterender)rinfoformatfragmenttemplates rr,zTGPlugin.render3sl h $ $ 4))(33H   0 KK,,.. / / /x&&&&&r)NNr)N)r'FN)__name__ __module__ __qualname____doc__rr&r,rrrrr s\00;;;;, 6 6 6 6=A ' ' ' ' ' 'rrN)makor mako.lookupr mako.templaterrrrrr8so&&&&&&""""""1'1'1'1'1'1'1'1'1'1'r