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, {})
  blacklist = opts.get('renderer_blacklist')
  whitelist = opts.get('renderer_whitelist')
  return compile_template(template, rend, renderer, blacklist, whitelist, **template_dict)
 with salt.utils.fopen(template, 'r') as fh_:
  return fh_.read()

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 , { } ) blacklist = opts . get ( 'renderer_blacklist' ) whitelist = opts . get ( 'renderer_whitelist' ) return compile_template ( template , rend , renderer , blacklist , whitelist , ** template_dict ) with salt . utils . fopen ( template , 'r' ) as fh_ : return fh_ . read ( )
renders the template and fires the signal .