I would prefer @njx idea of passing the object and using the dot notation to make the template easier to expand later, since you don't need to keep adding the strings to it.