template to data