template to yaml