Is there a way to get (and use) an environment variable in a template file?
So I guess my problem was that I was on a Local environment, where Acquia does not provide any environment variables. I had to push my test code to Dev in order to see any effect.