PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/renderers/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //proc/self/root/opt/saltstack/salt/lib/python3.10/site-packages/salt/renderers/cheetah.py |
""" Cheetah Renderer for Salt """ try: from Cheetah.Template import Template HAS_LIBS = True except ImportError: HAS_LIBS = False def render(cheetah_data, saltenv="base", sls="", method="xml", **kws): """ Render a Cheetah template. :rtype: A Python data structure """ if not HAS_LIBS: return {} if not isinstance(cheetah_data, str): cheetah_data = cheetah_data.read() if cheetah_data.startswith("#!"): cheetah_data = cheetah_data[(cheetah_data.find("\n") + 1) :] if not cheetah_data.strip(): return {} return str(Template(cheetah_data, searchList=[kws]))