add support for template in data_name attribute