The temple reverberated with rhythmic Sanskrit and Tamil hymns, as a Hindu priest held a flame before the god.