def _render(template, render, renderer, template_dict, opts):
    if render:
        if template_dict is None:
            template_dict = {}
        if not renderer:
            renderer = opts.get('renderer', 'yaml_jinja')
        rend = salt.loader.render(opts, {})
        return compile_template(template, rend, renderer, **template_dict)
    with salt.utils.fopen(template, 'r') as fh_:
        return fh_.read()
Render a template
dataset/ETHPy150Open saltstack/salt/salt/utils/http.py/_render