Group template variables together