grunt is injected into the template function, so moving the declaration of _ to inside the function and using the inject grunt object instead of trying to require grunt (since it doesn't actually exist in the .grunt-init template folder
Merge pull request #1 from doowb/master

Moving declaration statements to inside template function