code: def _render_template(param, username):
      '''
      Render config template, substituting username where found.
      '''
      env = Environment()
      template = env.from_string(param)
      variables = {'username': username}
      return template.render(variablesf _render_template(param, username):
      '''
      Render config template, substituting username where found.
      '''
      env = Environment()
      template = env.from_string(param)
      variables = {'username': username}
      return template.render(variables)
docs: Render config template, substituting username where found.