code: def render_local_template(service_name, environment, repo_root, template_file):
      
      cmd = 'cd {} && ef-cf {} {} --devel --verbose'.format(repo_root, template_file, environment)
      p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      stdout, stderr = p.communicate()
  
      if p.returncode != 0:
          stderr = indentify('\n{}'.format(stderr))
          stdout = indentify('\n{}'.format(stdout))
          raise Exception('Service: `{}`, Env: `{}`, Msg: `{}{}`'
                          .format(service_name, environment, stderr, stdout))
  
      logger.debug('Rendered template for `%s` in `%s`', template_file, environment)
  
      r = re.match(r".*(^{.*^})$", stdout, re.MULTILINE | re.DOTALL)
      return jsonify(json.loads(r.group(1)))
docs: Render a given service's template for a given environment and return it