templates in object attributes