Fixed grunt file to work with templates