def write_temple_config(temple_config, template, version):
with open(temple.constants.TEMPLE_CONFIG_FILE, '<STR_LIT:w>') as temple_config_file:<EOL><INDENT>versioned_config = {<EOL>**temple_config,<EOL>**{'<STR_LIT>': version, '<STR_LIT>': template},<EOL>}<EOL>yaml.dump(versioned_config, temple_config_file, Dumper=yaml.SafeDumper)<EOL><DEDENT>
Writes the temple YAML configuration