HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/renderers/__pycache__/mako.cpython-310.pyc
o

�N�g��@s.dZddlZddlZddlmZddd�ZdS)	z�
Mako Renderer for Salt

This renderer requires the Mako library.

To install Mako, do the following:

.. code-block: bash

    salt-pip install mako
�N)�SaltRenderError�base�cKsTtjjj|fdtttt||||d�	|��}|�dd�s#t	|�dd���t
�|d�S)z|
    Render the template_file, passing the functions and grains into the
    Mako rendering system.

    :rtype: string
    T)	Zto_str�saltZgrains�optsZpillar�saltenv�sls�context�tmplpath�resultF�dataz%Unknown render error in mako renderer)r�utilsZ	templatesZMAKOZ__salt__Z
__grains__Z__opts__Z
__pillar__�getr�io�StringIO)Z
template_filerrr	r
�kwsZtmp_data�r�G/opt/saltstack/salt/lib/python3.10/site-packages/salt/renderers/mako.py�renders(���

�r)rrNN)�__doc__rZsalt.utils.templatesrZsalt.exceptionsrrrrrr�<module>s