How about doing the transformation in the callback function of the `init.prompt(` line?
See the [jQuery template.js](https://github.com/gruntjs/grunt-init-jquery/blob/master/template.js#L44)