def _render_template(param, username):
 env = Environment()
 template = env.from_string(param)
 variables = {'username': username}
 return template.render(variables)

def _render_template ( param , username ) : env = Environment ( ) template = env . from_string ( param ) variables = { 'username' : username } return template . render ( variables )
render config template .