Add environment to the template