grunt-ejs-static is almost exactly what I needed, but here's some improvements I wanted to make.

What got me started was a random error that grunt threw up - "Could not set filename property of undefined". I added the debugging logs so that I knew what was going on and why and an error message to make sure that nobody else gets confused while learning.

The other improvement is using the empty string as a place to store variables like the Google Analytics ID which only need to be set once for an entire site.

I bumped the version number to 0.2 because of the extra global variables feature. That's correct under my understanding of Semantic Versioning but I'd like to know if you think that was right.