recursively get templates in DynamicText::get