add request to the template environment